Thanks all for the pointer to rename - looks like a very useful command.
I found a man page for it but it is very sparse. Is there a good
description for
the options and usage of rename?
Thanks.
Alec Shaw
Siddharth Patwardhan wrote:
................
I use the rename command for this. The syntax is: rename FROM TO FILE...
So, for this example:
rename ' ' _ *
Yes... I've also found the 'rename' command to be quite useful for
mass-renaming of files. It is especially powerful because of its
support for Perl-style regex substitution:
rename 's/\s+/_/g' *
-- Sid.
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/