Normally, to find a file recursively under a directory, we do something like
find path/to/directory -name "*filename*"
To exclude finding in some sub-directories under directory, we can do
find path/to/directory -name "*filename*" -not -path "*subdir1*" -not -path "*subdir2*"
[Courtesy: this]
find path/to/directory -name "*filename*"
To exclude finding in some sub-directories under directory, we can do
find path/to/directory -name "*filename*" -not -path "*subdir1*" -not -path "*subdir2*"
[Courtesy: this]
No comments:
Post a Comment