[Sussex] Rename a list of files
Angelo Servini
Angelo.Servini at claybrook.co.uk
Wed May 11 11:05:21 UTC 2005
Hi
I have a problem, I would like to write a bash script or enter a command to rename a list of files numerically.
ie.
<somecommand> /home/angelo/folder
where the folder above contains a list of files like
img2.jpg
img3.jpg
img4.jpg
img8.jpg
img9.jpg
img12.jpg
and end up with
img1.jpg
img2.jpg
img3.jpg
img4.jpg
img5.jpg
img6.jpg
It would be nice also if I could enter a start number also.
ie.
<somecommand> /home/angelo/folder <startn>
Can anyone help?
Cheers
<humour>
Economists are still trying to figure out why the girls with the least
principle draw the most interest.
</humour>
--
Angelo Servini
Programmer/Analyst
Claybrook Computing Ltd
Sutherland House
Russell Way
Crawley
West Sussex. RH10 1UH
* 01293 604955
* 01293 604099 (Fax)
* angelo.servini at claybrook.co.uk
The above information is confidential to the addressee and may be privileged. Unauthorised access and use is prohibited. If you received this message in error please tell us by reply (or telephone the sender) and delete all copies
from your system.
Internet communications are not secure and therefore this Company does not accept legal responsibility for the contents of this message. This e-mail message has been swept by Activis e:)scan for the presence of detectable computer viruses, but we cannot guarantee that it is virus-free and you should scan this email for viruses prior to opening or saving any attachments.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
Please note that communications sent by or to any person through our computer systems may be viewed by other members of the Hogg Robinson group.
Claybrook Computing Limited (Registered in England and Wales No 1287205) is a subsidiary of Claybrook Computing (Holdings) Limited
Registered Office: Abbey House. 282 Farnborough Road, Farnborough, Hampshire GU14 7NJ
A Hogg Robinson company.
More information about the Sussex
mailing list