Skip to content

Instantly share code, notes, and snippets.

@alkema
Created March 11, 2009 17:12
Show Gist options
  • Select an option

  • Save alkema/77575 to your computer and use it in GitHub Desktop.

Select an option

Save alkema/77575 to your computer and use it in GitHub Desktop.
find . -name "* *"|while read file
do
echo "$file"
mv "$file" "`echo "$file"| awk ' BEGIN {OFS="_"} $1=$1 '`"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment