LoginSignup
0
0

More than 5 years have passed since last update.

findコマンドで名前の条件をいろいろ指定

Posted at

findで名前に○○とか△△を名前に含まないファイルを探したいときには-not-andを組み合わせることで実現できる。
例えば次のようなコマンドを実行するとmecabcabochaを拡張子とするファイルは検索対象から除外できる。

find . -not -name '*\.mecab' -and -not '*\.cabocha' -type f

-orもある。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0