Created
November 15, 2012 09:59
-
-
Save marc0der/4077772 to your computer and use it in GitHub Desktop.
Iterate over files with spaces in names with bash
This file contains 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 -d /some/directory -type f -depth 1 | grep $ | while read file; do | |
#perform some work on $file here | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment