linux findコマンドディレクトリの検索方法を無視
linuxオペレーティングシステムではfindコマンドが非常に強力で、ファイルとディレクトリの検索において極めて優れており、xargsコマンドと組み合わせることができれば、さらに強力です。
次にfindコマンドがディレクトリ検索を無視する使い方を見てみましょう。
例1ファイルのプロパティに基づいて検索:
コードのコピーfind . -type f -name "*config*" ! -path "./tmp/*" ! -path "./scripts/*" ! -path "./node_modules/*"
Explanation:
find . - Start find from current working directory (recursively by default)-type f - Specify to find that you only want files in the results