/usr/bin/echo: Difference between revisions

Created page with "echo - テキスト行を表示する __TOC__ == SYNOPSIS == echo [SHORT-OPTION]... [STRING]... echo LONG-OPTION == DESCRIPTION == Echo the STRING(s) to standard output. -n do not output the trailing newline -e enable interpretation of backslash escapes -E disable interpretation of backslash escapes (default) --help display this help and exit --version output version information and..."
 
Line 8: Line 8:


== DESCRIPTION ==
== DESCRIPTION ==
      Echo the STRING(s) to standard output.
STRINGを標準出力にエコーする。


      -n    do not output the trailing newline
:-n 末尾の改行を出力しない
:-e     バックスラッシュエスケープの解釈を有効にする
:-E バックスラッシュエスケープの解釈を無効にする(デフォルト)
:--help ヘルプを出力し終了する
:--version バージョン情報を出力し終了する


      -e    enable interpretation of backslash escapes
-eが有効な場合、以下のシーケンスが認識される:


      -E     disable interpretation of backslash escapes (default)
:\\     backslash


      --help display this help and exit
:\a    alert (BEL)


      --version
:\b    backspace
              output version information and exit


      If -e is in effect, the following sequences are recognized:
:\c    produce no further output


      \\    backslash
:\e     escape


      \a     alert (BEL)
:\f     form feed


      \b     backspace
:\n     new line


      \c     produce no further output
:\r     carriage return


      \e     escape
:\t     horizontal tab


      \f     form feed
:\v     vertical tab


      \n    new line
:\0NNN  byte with octal value NNN (1 to 3 digits)


      \r    carriage return
:\xHH  byte with hexadecimal value HH (1 to 2 digits)


      \t    horizontal tab
注意:お使いのシェルは独自のバージョンのechoを持っているかもしれないが、通常はここで説明を優先する。 サポートしているオプションの詳細については、シェルのドキュメントを参照のこと。
 
      \v    vertical tab
 
      \0NNN  byte with octal value NNN (1 to 3 digits)
 
      \xHH  byte with hexadecimal value HH (1 to 2 digits)
 
      NOTE:  your  shell  may have its own version of echo, which usually supersedes the version described
      here.  Please refer to your shell's documentation for details about the options it supports.


== AUTHOR ==
== AUTHOR ==