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.
シェルで、名前が 2 文字以上で cs を含まない現在のディレクトリ内のファイルを echo を使用して検索する方法。
これを試して。
$ find . -name "*??*" -not -name "*cs*"
現在のディレクトリ内のファイルのみに関心があり、サブディレクトリにトラバースしたくない場合は、次のことを試してください。
$ find . -maxdepth 1 -name "*??*" -not -name "*cs*"