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 30 days ago. Viewed 1,466 times. #1
[edit] [rdf]
labels
attachments
(2018-02-18)

Solution

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt