/usr/bin/echo: Difference between revisions

From Azupedia
Jump to navigation Jump to search
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 ==

Revision as of 11:15, 24 June 2023

echo - テキスト行を表示する

SYNOPSIS

      echo [SHORT-OPTION]... [STRING]...
      echo LONG-OPTION

DESCRIPTION

STRINGを標準出力にエコーする。

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

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

\\ backslash
\a alert (BEL)
\b backspace
\c produce no further output
\e escape
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab
\0NNN byte with octal value NNN (1 to 3 digits)
\xHH byte with hexadecimal value HH (1 to 2 digits)

注意:お使いのシェルは独自のバージョンのechoを持っているかもしれないが、通常はここで説明を優先する。 サポートしているオプションの詳細については、シェルのドキュメントを参照のこと。

AUTHOR

      Written by Brian Fox and Chet Ramey.

REPORTING BUGS

      GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
      Report any translation bugs to <https://translationproject.org/team/>

COPYRIGHT

      Copyright © 2020 Free Software Foundation,  Inc.   License  GPLv3+:  GNU  GPL  version  3  or  later
      <https://gnu.org/licenses/gpl.html>.
      This is free software: you are free to change and redistribute it.  There is NO WARRANTY, to the ex‐
      tent permitted by law.

SEE ALSO

      Full documentation <https://www.gnu.org/software/coreutils/echo>
      or available locally via: info '(coreutils) echo invocation'

External link