Thursday, August 15, 2019

Linux: skip a directory in find command


For example, to skip a sub-directory named .git and all the contents under it, run command:

$ find . -path ./.git -prune -o -print

option -prune is used to skip the directory specified by -path.

No comments:

 
Get This <