-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jason Holt wrote:
> On Mon, 28 Feb 2005, Ashley Oviatt wrote:
>
>
>>Hey, I have a directory that has the following filenames in it;
>>
>>DYK1-1-MP.png DYK1-11-RP.png DYK1-3-MP.png DYK1-5-RP.png
>>
>>I want to change them so they look like this (essentially, take out the K):
>>
>>DY1-1-MP.png DK1-11-RP.png
>
>
> Try this:
> perl -e 'for(<*>) { my $fn = $_; s/DYK/DK/; system('echo','mv',$fn,$_); }'
Or:
rename DYK DK DYK*.png
Frank
- --
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD4DBQFCI3I9aI0dwg4A47wRAjsdAKCresIn5DOTrppFdVMyvZnnDapsGgCWN97+
BalIcOM9KAPULCMkCXZEWg==
=bWig
-----END PGP SIGNATURE-----
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list