Skip to content

Instantly share code, notes, and snippets.

@yeliu84
Created November 24, 2009 10:28
Show Gist options
  • Save yeliu84/241777 to your computer and use it in GitHub Desktop.
Save yeliu84/241777 to your computer and use it in GitHub Desktop.
Handle filename with spaces
# 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