Monday, May 7, 2012

replacing space in filename under osx/linux

just a little handy script to replace all the spaces in a filename with an underscore


for file in *.txt do newname=$(echo $file | tr ' ' _) mv "$file" $newname done




just a little handy tool

No comments:

Post a Comment