Remove Invalid characters in Filename.
Sometimes I end up having some invalid characters in filename like ? & and so on.
So simple bash script to get rid of them:
for i in `find . -type f`
do
echo $i
mv $i `echo $i |tr ? _|tr = _ |tr ’&’ ’_’`
done <a name="more">
Related Articles:
- 2009/11/04 Photo Resizing
- 2009/10/12 Adding dates to your photos.
- 2008/11/20 Add border to images from command line using montage.
- 2010/01/07 Sendmail host map failure issue with sendmail.
- 2010/01/06 Picture Collage Maker 2.0
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.