Monday, January 13, 2014

Rename for clearing spaces and to lower case

Clear spaces:
ls | sed 's/^.*/mv "&" \`echo "&" \| sed "s\/.* \/\/g"\`/g' | sh

Lower case:
ls | sed 's/^.*/mv "&" \`echo "&" \| tr A-Z a-z`/g’ | sh

No comments:

Post a Comment