htr3n
1/19/2018 - 8:43 AM

find-util.md

Find & Copy

find /path/to/find -name '*.txt' -exec cp {} /new/path \;

Find & Handling Spaces in File Names

find . -print0 | xargs -0 <command>
find . -print0 | while read -d $'\0' file; do cp -v "$file" /tmp; done

Find and Change Modes

find public_html/ -type d -exec chmod 755 {} +