Update filenames removing ampersand

Written by Peter Davies on .

This is quite useful script (I named it fix.sh) for removing unsupported characters from file names:

ls -1 | while read file
do
target=$(echo $file | sed -e "s/\&/_/")
mv "$file" "$target"
done

In particular, this removes "&" from filenames and replaces with underscore (_) using sed - very useful