Re: Change spaces or dots in file name to dashes
- From: Dave M <DaveM@xxxxxxxx>
- Date: Sun, 13 May 2007 08:38:15 +0000
At 12:41 PM 5/11/2007 , Toby wrote:
rename -v 's/[^\w\d\-]/_/g' *
to replace all non-alphanumeric-or-dash characters with underscores in all
files
in the current folder.
Thank you for the very useful tip. Is there an easy way to make it traverse
a directory tree and fix the names of all of the files in the various
sub-directories?
-------------------------------
Dave M
Davem (at) Mich (dot) Com
Ann Arbor, Mich. USA
Protect your digital rights: http://www.eff.org
"The 'Analog Holes' they want to stop up are our eyes, ears and mouths."
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: Change spaces or dots in file name to dashes
- From: Serg B.
- Re: Change spaces or dots in file name to dashes
- References:
- Change spaces or dots in file name to dashes
- From: OOzy Pal
- Re: Change spaces or dots in file name to dashes
- From: Toby Kelsey
- Change spaces or dots in file name to dashes
- Prev by Date: Re: Sound problem
- Next by Date: Mirror website for offline viewing?
- Previous by thread: Re: Change spaces or dots in file name to dashes
- Next by thread: Re: Change spaces or dots in file name to dashes
- Index(es):
Relevant Pages
|