We needed to rename a whole load of files containing the ? character yesterday. The following command did the trick and is saved here for the next time I need to do it.
for file in * ; do mv $file `echo $file | sed 's/\?//'` ; done
We needed to rename a whole load of files containing the ? character yesterday. The following command did the trick and is saved here for the next time I need to do it.
for file in * ; do mv $file `echo $file | sed 's/\?//'` ; done