Art Alexion on 9 Sep 2005 14:17:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] batch renaming


Chris Marget wrote:

>On Fri, 9 Sep 2005, Art Alexion wrote:
>
>  
>
>>in dos if I wanted to rename a batch of files i a directory, I could do
>>
>>    move (or rn) ??.txt 61??.txt
>>
>>and it would rename all of the two character-named text files to prepend
>>61.  Bash won't let me do this as
>>
>>    mv ??.txt 61??.txt
>>
>>returns an error indicating that. when moving multiple files, the target
>>must be a directory.  Is there a command that will let me do this?
>>    
>>
>
>for file in ??.txt
>do
>  mv $file 61$file
>done
>
>that will prepend '61' onto every filename.  is that what you're trying
>to do?
>
>  
>
Yes.  Thanks.

-- 

_______________________________________
Art Alexion
Arthur S. Alexion LLC
arthur [at] alexion [dot] com
aim: aalexion
sms: 2679725536 [at] messaging [dot] sprintpcs [dot] com

PGP fingerprint: 52A4 B10C AA73 096F A661  92D2 3B65 8EAC ACC5 BA7A
The attachment -- signature.asc -- is my electronic signature; no need for alarm.
Info @ http://mysite.verizon.net/art.alexion/encryption/signature.asc.what.html

Key for signed PDFs available at
http://mysite.verizon.net/art.alexion/encryption/ArthurSAlexion.p7c
The validation string is TTJY-ZILJ-BJJG.
________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug