「Transwiki:Bash Shell Scripting」の版間の差分

ナビゲーションに移動 検索に移動
M (章立ての翻訳→‎Index of symbols)
<!-- TODO: Use wiki-text format. -->
<tr> <td><tt>`&hellip;`</tt></td> <td><ul><li>Triggers command substitution; equivalent to <tt>$(&hellip;)</tt>, but is somewhat more error-prone.</li></ul></td> </tr>
<tr> <td><tt>{</tt></td> <td>Open curly brace. Used for specific variable expansion. E.g. (where 開き中括弧。変数展開に使用する。例:変数var =の値が "hello ")のとき echo "${var}world" will print "hello world",を出力する。 echo "$varworld" willはバグの元になる。これは generatebashにvarworld an error, expecting a variable called varworld.変数を期待させるからである。</td> </tr>
<tr> <td><tt>|</tt></td> <td>Pipe. Used for redirecting input to output. Specifically, it takes the output of the command on the left hand side, runs the program on the right side, and then passes the contents of the first command's output to the second, as if it were being typed from a keyboard. 'ls -l | grep Desk' is equivalent to running "grep Desk", and then manually typing what ls -l would have output. Every press of the return key would then trigger grep until ^D is pressed to pass the EOF.<!--I think that is a very intuitive way to think about it.--></td> </tr>
<tr> <td><tt>}</tt></td> <td>Closing curly brace.閉じ中括弧</td> </tr>
<tr> <td><tt>~</tt></td> <td>チルダ。ホームディレクトリを参照するために使用する。ログインしている、"mrwhite"のホームディレクトリ/home/mrwhiteに移動するには、 cd ~ (または cd)。ログインしていないユーザーの場合は、'cd ~mrwhite' のように名前をいれる。</td> </tr>
<tr> <td><tt>~</tt></td> <td>Tilde. Typically used to refer to the home directory. Logged in as "mrwhite", cd ~ (or just cd) would go to /home/mrwhite. Logged in as another user, the same effect could be achieved with 'cd ~mrwhite'.</td> </tr>