« Home | Separate Shell Command history » | NFS between Solaris & Linux » | How To Set Up Database Replication In MySQL » | My sysadmin toolbox » | Network Monitoring with Zabbix » | Preventing SSH Dictionary Attacks With DenyHosts » | How do I scan my Linux system for rootkits, worms,... » | Convert man pages to text » | Poor Mans Raid & Clone Script Tutorial » | Out-going admin cron jobs » 

Monday, April 03, 2006 

Linux Renaming Sets of Files

Easy way to rename a set of files in Linux:

*** Need not use any SHELL script
*** or any other prog.
*** simply use the rename command

**SYNTAX:**
% rename . .

eg: To rename all .jpg to .gif use:

% rename .jpg .gif *

To rename only .jpg with starting
letter as t to .gif use:

% rename .jpg .gif t*

Links to this post

Create a Link