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.
次のことを行うためのシェル スクリプトを教えてください。特定の文字列を含むファイル名を持つファイルを検索する必要があります。部分文字列「_ww.txt」を含む名前のすべてのファイルを検索します。次に、これらのファイルの先頭に「#found file」というコメントを追加する必要があります。
どうぞ:
find . -name "*_ww.txt" -printf "#found\n%p\n"