Created
November 24, 2009 10:28
-
-
Save yeliu84/241777 to your computer and use it in GitHub Desktop.
Handle filename with spaces
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
# via http://www.macgeekery.com/tips/cli/handling_filenames_with_spaces_in_bash | |
find ~ -name '* *' | while read FILE | |
do | |
echo "$FILE rocks." | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment