[SLUG] mass renaming?

From: Austin Theen (austin@austintheen.com)
Date: Wed Oct 13 2004 - 16:49:40 EDT


I need a quick bash / prel script to rename incomming faxes to a larger
range.

for instance.
> -rw-r--r-- 1 uucp uucp 28049 Sep 13 11:43 fax01267.tif
> -rw-r--r-- 1 uucp uucp 31057 Sep 13 16:28 fax01268.tif
> -rw-r--r-- 1 uucp uucp 456457 Sep 13 18:08 fax01269.tif

needs to be renamed (without changing the numbers) to this format

> -rw-r--r-- 1 uucp uucp 228605 Sep 20 15:19 fax000001274.tif
> -rw-r--r-- 1 uucp uucp 86629 Sep 21 08:32 fax000001275.tif
> -rw-r--r-- 1 uucp uucp 47145 Sep 21 09:15 fax000001276.tif
> -rw-r--r-- 1 uucp uucp 61035 Sep 21 10:19 fax000001277.tif
                                                             ^^^^
So essentially, I need to add '0000' after fax*.tif.

Anyone crafty enough to come up with a quick solution?

Austin

-- 
Austin Theen, Freelance Network Engineer      High Gear Solutions
Linux  | Windows  | Mac OS/X  | Networks  | Internet  | Databases 
Office (941) 492-6111        368 Briarwood Road, Venice, FL 34293


----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:40:47 EDT