Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
しばらくの間、何かが私を悩ませています:
watch cat file
正常に動作し、2 秒ごとにファイルに出力を報告します。
watch cat file | grep "text"
動作しますが、1行だけですべてが奇妙です。
結合コマンド オーバー ウォッチの正しい構文は何ですか?
watch の後にコマンドを引用符で囲みます。
watch 'cat file | grep "text"'