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.
dir/s subhang.txt を使用せずに、name という名前のファイルが存在するかどうかを調べたい。パイプを使用してそれを行う方法と、パイプを使用して2つのCプログラムを接続する方法を教えてください
コマンド:
dir/s *.txt >search.txt | find "name"
dir/s... の出力がファイルに入るため、機能しませんsearch.txt。試してみると:
dir/s
search.txt
dir/s *.txt | find "name"
... の結果をfindコンソールに出力する、または
find
dir/s *.txt | find "name" >search.txt
... 検索結果をファイルに出力しますsearch.txt。