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.
Linuxパイプを使用してループを作成することは可能ですか?例えば
cmd1 | cmd2 | cmd3 | 'stdincmd1に戻る'
つまり、のに接続し直したいstdoutのですが。cmd3stdincmd1
stdout
cmd3
stdin
cmd1
名前付きパイプ/FIFOを使用できます。
mkfifo cmd3-to-cmd1 cmd1 < cmd3-to-cmd1 | cmd2 | cmd3 >> cmd3-to-cmd1