Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created May 2, 2012 19:57
Show Gist options
  • Save legumbre/2579804 to your computer and use it in GitHub Desktop.
Save legumbre/2579804 to your computer and use it in GitHub Desktop.
no -printf in BSD find(1)
# find and lack of -printf in BSD, use stat -f as a workaround
find . -name '*.mp3' -print0 | xargs -0 stat -f "%m%t%Sm %N" | grep Apr | cut -d" " -f 5 | xargs -I{} cp {} /tmp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment