|
replacing single quotes in file names
I have a bunch of photos called things like:
ben's birthday.jpg
ben's first day skiing.jpg
haille's dog.jpg
I want to automate the removal of the single quotes, changing their names to:
bens birthday.jpg
bens first day skiing.jpg
hailles dog.jpg
I have used :
for i in *.jpg; do mv "$i" `echo $i | tr ' ' '_'`; done
to replace spaces in filenames with underscores. I have been unable to modify this to work for single quotes. any help appreciated :-)
|