Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 320 Bytes

not_match.md

File metadata and controls

10 lines (8 loc) · 320 Bytes

Search for files not matching specific pattern

find /tmp -type f -not -name "*test*"
  • /tmp - base path to search in
  • -type f - locate only files (skip directories)
  • -not - will revert next rule
  • -name "*test*" - match all files containing test in their names (thus exclude them from results)