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.
「abc」、「qwe」、「asd」、または「zcx」という名前のすべてのファイルを見つけようとしています。
find . -name "abc"|"qwe"|"asd"|"zcx"
これは正しくありませんか?
これを使って:
find . -name "abc" -o -name "qwe" -o -name "asd" -o -name "zcx"
これを試して:
find . -regex '.*/\(abc\|qwe\|asd\|zcx\)$'
注:-regexはパス全体に一致します。
-regex