pattern matching rename...

Todd Zullinger tmz at pobox.com
Thu Dec 28 16:55:21 UTC 2006


bruce wrote:
> i have the following as a test...
> 
> abcCAT.py
> abcCAT.txt
> 
> i'd like to rename the files, so i get
> abcCAT_dog.py
> abcCAT_dog.txt
> 
> i've been trying to figure out how to achieve what i want using
> rename and pattern matching.. i'm missing something.. and it's
> simple!!
> 
> any thoughts/pointers?

$ rename . _dog. abcCAT.*
$ ls abcCAT*
abcCAT_dog.py  abcCAT_dog.txt

Beware that there are different programs named rename on different
distros.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
I believe in the noble, aristocratic art of doing absolutely nothing.
And someday, I hope to be in a position where I can do even less.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20061228/02f862cb/attachment-0001.sig>


More information about the fedora-list mailing list