以下の内容はhttps://shuzo-kino.hateblo.jp/entry/2019/09/12/235639より取得しました。


sh/bashコマンドの"-c"をつけると文字列を実行できる。

実際のところ

普通に文字列を渡す

$ bash -c "echo 12"
12

$ sh -c "echo 12"
12

ファイルから読んでみる

$ cat samplecode.txt 
echo 134

$ sh -c "`cat samplecode.txt`"
134

これは普通のshコマンドつなぎと結果は同じです。

$ sh < samplecode.txt
134

$ cat samplecode.txt | sh
134



以上の内容はhttps://shuzo-kino.hateblo.jp/entry/2019/09/12/235639より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14