Posted By

noah on 02/10/09


path search filter directory find macports prune

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Filtering the Find command

 / Published in: Bash

How to filter files and directories with the find command.

The command below finds files that end in "sass," but not the file named "constants.sass," and not the directory "landing_page," nor any of its contents.

  1. find . ! -name "*constants.sass" ! -path "*landing_page*" -name "*sass"

Report this snippet  

You need to login to post a comment.