- Find files of today and rsync them to a folder
find ./ -daystart -ctime 0 -print0 | xargs -0 -I{} rsync -avr {} /tmp/blabla/
- Find files and rename them with regex
find . -type f | perl -pe 'print $_; s/input/output/' | xargs -d "\n" -n2 mv
- Rename all files named with this convention 'YYYYMMDD.md' to 'YYYY_MM_DD.md'
find /path/to/your/directory -type f -name "*.md" -exec bash -c 'for f; do mv "$f" "$(dirname "$f")/$(basename "$f" | sed -E "s/^([0-9]{4})([0-9]{2})([0-9]{2})\.md$/\1_\2_\3.md/")"; done' bash {} +