less
を押しQて終了するまで、ターミナルコンテンツ(現在ファイル全体ではないコンテンツ)を出力ファイルにリダイレクトするにはどうすればよいless
ですか?
ターミナルに現在表示されているセクションだけを保存するには、|
コマンドを使用できます。
差出人man less
:
| <m> shell-command
<m> represents any mark letter. Pipes a section of the input file to the given
shell command. The section of the file to be piped is between the first line on the
current screen and the position marked by the letter. <m> may also be '^' or '$' to
indicate beginning or end of file respectively.
If <m> is '.' or newline, the current screen is piped.
|
(パイプ記号).
マークを選択して、端末に表示されているものだけを選択します(または単に押しますEnter)tee
ファイルに保存するために使用します。例:tee /tmp/section_of_big_file.txt
スクリーンショット付きのシーケンス:
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加