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


Click here to return to the 'Use divider files to organize albums in XMMS' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use divider files to organize albums in XMMS
Authored by: pwharff on Mar 25, '04 02:54:11PM

If you want to replace a space or multiple spaces like in this case with underscores, you can run this shell script (maybe call it something like "rename"):

for file in * ; do
mv "$file" $(echo "$file" | sed 's/ /_/g')
done

Don't forget to make this executable with "chmod +x rename" or you can just run this on one line in the terminal where you spaced files reside:

for file in * ; do mv "$file" $(echo "$file" | sed 's/ /_/g') ; done

Both should work fine.



[ Reply to This | # ]