[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:50121] Re: スクリプトによるファイル出力



At Mon, 28 Jan 2008 23:34:18 +0900,
SATOH Fumiyasu wrote:
> ということで bash 組込みコマンドなので、bash のマニュアルを
> どうぞ。`man bash` or `man 1 bash`
> 
> # echo とか test とかは例外というか、なんというか…。:-)

  bash組み込みコマンドで分からないことがあったとき、私はhelpを多用して
います。shell scriptを書くときにfor, while等も含めて解説が得られるので
重宝しています。

$ help exec
exec: exec [-cl] [-a name] file [redirection ...]
     Exec FILE, replacing this shell with the specified program.
    If FILE is not specified, the redirections take effect in this
    shell.  If the first argument is `-l', then place a dash in the
    zeroth arg passed to FILE, as login does.  If the `-c' option
    is supplied, FILE is executed with a null environment.  The `-a'
    option means to make set argv[0] of the executed process to NAME.
    If the file cannot be executed and the shell is not interactive,
    then the shell exits, unless the shell option `execfail' is set.

$ help echo
echo: echo [-neE] [arg ...]
     Output the ARGs.  If -n is specified, the trailing newline is
    suppressed.  If the -e option is given, interpretation of the
    following backslash-escaped characters is turned on:
        \a      alert (bell)
        \b      backspace
        \c      suppress trailing newline
        \E      escape character
        \f      form feed
        \n      new line
        \r      carriage return
        \t      horizontal tab
        \v      vertical tab
        \\      backslash
        \num    the character whose ASCII code is NUM (octal).

    You can explicitly turn off the interpretation of the above characters
    with the -E option.

-- 
野首 貴嗣
E-mail: knok@xxxxxxxxxxxxx
	knok@xxxxxxxxxx / knok@debian.org