Vim question
Alec Shaw
shaw.alec at gmail.com
Wed Jan 14 10:40:28 MST 2009
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.
> */
>
>
More information about the PLUG
mailing list