Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to remove spaces from filenames' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to remove spaces from filenames
Authored by: degiy on Aug 13, '10 03:06:00AM

>out;ls -1 | grep ' ' | tr ' ' '!' | while read a ; do b=`echo $a | tr '!' '_'`; echo "mv ,$a, $b" ;done | tr , \' | tr ! ' ' > out ; . ./out; \rm -f out



[ Reply to This | # ]