For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Remove Spaces In Filenames

Remove Spaces In Filenames

Created by dave. Last edited by dave, 6 years and 9 days ago. Viewed 1,454 times. #1
[edit] [rdf]


find -name "* *" -type d | rename 's/ /_/g'    # do the directories first
find -name "* *" -type f | rename 's/ /_/g'
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt