On Mon, 22 Nov 2004 19:24, Jamie Dobbs wrote: > A while ago (ok maybe a long time ago!) someone gave me a piece of code > that would go through the files in a directory (actually having it > traverse an entire directory tree would be better) and rename any files > that contained "illegal" characters (ie. ones Windows/DOS doesn't like). > I have since misplaced the code and would appreciate any help that > people can give me to fix these filenames that contain illegal > characters (such as * $ % etc). > > Cheers > > Jamie
Go to; http://tldp.org/LDP/abs/html/contributed-scripts.html#BLANKRENAME This script is designed to remove blanks from file names. I am sure you could adapt it to remove illegal file name characters. Tip: to generate odd characters which do not appear on your keyboard use the, echo -e "\NNN" where NNN is the ascii number of the offending character. Cheers Ross Drummond
