public
Created

Update filenames removing ampersand

  • Download Gist
fix.sh
Shell
1 2 3 4 5
ls -1 | while read file
do
target=$(echo $file | sed -e "s/\&/_/")
mv "$file" "$target"
done

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.