Created
May 2, 2012 19:57
-
-
Save legumbre/2579804 to your computer and use it in GitHub Desktop.
no -printf in BSD find(1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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