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
This page contains a single entry by published on June 15, 2004 9:21 AM.
Morpeth Gardens was the previous entry in this blog.
Style guidelines. is the next entry in this blog.
Find recent content on the main index or look in the archives to find all content.