tee
teeとは
「コマンドの結果をファイルに出力したいけど、標準出力でも出力を見たい!」、という欲張りな要望に答えてくれるコマンド。 tee
code:memo
--append -a (append to the given FILEs, do not overwrite)
--help (display this help and exit)
--ignore-interrupts -i (ignore interrupt signals)
--version (output version information and exit)
特定ディレクトリのファイルのみ抽出→標準出力とfilepath.txtに出力→lessで結果確認
$ find dir/ -type f | tee filepath.txt | less
確認用
Q. teeとは