Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find . -path '*/*/*' -prune -o -type d -print
- find . ( -name . -o -prune ) -extra-conditions-and-actions
- find . ! -name . -prune -extra-conditions-and-actions
- find . ( ! -path './*/*' -o -prune ) -extra-conditions-and-actions
- $ locale charmap
- UTF-8
- $ find . -maxdepth 2
- .
- ./St?phane
- ./St?phane/Chazelas
- ./Stéphane
- ./Stéphane/Chazelas
- ./John
- ./John/Smith
- $ find . ( ! -path './*/*' -o -prune )
- .
- ./St?phane
- ./St?phane/Chazelas
- ./St?phane/Chazelas/age
- ./St?phane/Chazelas/gender
- ./St?phane/Chazelas/address
- ./Stéphane
- ./Stéphane/Chazelas
- ./John
- ./John/Smith
- LC_ALL=C find . ( ! -path './*/*' -o -prune ) -extra-conditions-and-actions
- $ LC_ALL=C find . ( ! -path './*/*' -o -prune )
- .
- ./St?phane
- ./St?phane/Chazelas
- ./St??phane
- ./St??phane/Chazelas
- ./John
- ./John/Smith
- find some/dir/. ! -name . -prune ...
- find some/dir/. ( ! -path '*/./*/*' -o -prune ) ...
- (cd -P -- "$dir" && find . ...)
- find . -condition1 -action1 -condition2 -action2
- find . -contition1 -action1 -o -condition2 -action2
- find . ( ! -condition1 -o -action1 ) -condition2 -action2
- $ find dir1 dir2 -name myfile -maxdepth 1
- -regex '(<list of paths | delimited>)/<filename>'
- $ find dir1 dir2 -name myfile -regextype awk -regex '(dir1|dir2)/myfile' # GNU
- $ find -E dir1 dir2 -name myfile -regex '(dir1|dir2)/myfile' # MacOS BSD
- $ find dir1 dir2 -name myfile -maxdepth 1 # GNU
- -regex '(<list of paths | delimited>)/<anything that's not a slash>$'
- $ find dir1 dir2 -name myfile -regextype awk -regex '(dir1|dir2)/[^/]*$' # GNU
- $ find -E dir1 dir2 -name myfile -regex '(dir1|dir2)/[^/]*$' # MacOS BSD
Add Comment
Please, Sign In to add comment