Home

Geeklog: What I Learnt Today / Adam

You want to change all file names containing ? to a

> All the file names by one photographer 'Hannu Jannes' got mangled by one of elderly pc/httrack/coldfusion/iis Go to folder do this:

for filename in *.jpg; do newname=`echo $filename | sed -e 's/?/a/g'`; 
mv "$filename" "$newname"; done

/ Adam