0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

shell scriptわすれちゃうこと

Posted at

shell scriptわすれちゃうこと

コマンドと引数

起動したコマンドを、Sellscriptで利用するときの指定方法
$0 コマンド本体
$1 第一引数
くらいはなんとなく思いだす。

””の中ではどうかとか、注意事項を思い出さない。
動かなくえ毎回調べる感じ。

条件分岐

if みたいなものや
do qhile みたいなものがあるはず。

複雑な分岐の書き方が全く思い出さん。

debug 城跡

echo でどこを実行したのかを確認するのはなんとか。
それ以上のdebugの城跡は思い出さん。

その他

chmod +x
をし忘れて怒られることあり。

Ref.

初心者向けシェルスクリプトの基本コマンドの紹介
https://qiita.com/zayarwinttun/items/0dae4cb66d8f4bd2a337

ShellScript メモ
https://qiita.com/Utree/items/095a952f943c22c482d2

shell shortcut command
https://qiita.com/TomKid/items/cdc2a040acd64be26faf

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?