![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Rename/Convert Files in Shell Scripting? | hanu_oracle | Shell Programming and Scripting | 11 | 10-21-2008 09:13 AM |
| Script to rename files | cpreovol | Shell Programming and Scripting | 3 | 04-01-2008 11:45 AM |
| Script to rename files | Dinkster | UNIX for Dummies Questions & Answers | 5 | 01-22-2008 08:55 AM |
| rename files using shell scripting | gfhgfnhhn | Shell Programming and Scripting | 4 | 07-04-2006 04:37 PM |
| Rename Files with a script ? | yoveln | OS X (Apple) | 1 | 02-08-2004 12:45 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hey Guys....
Just need some help as I am not proficient in Unix shell script... Doubt: --------------- Suppose there will be some of the following files inside a directory called OUT ... Path: - /appdb1/product/batch/rms/OUT files inside OUT directory:- POSU_75002_20090127_20090129035442 POSU_75002_20090127_20090128035145 POSU_75002_20090127_20090129035442 I want a script which will rename these files and put an extension of .1, .2, .3, .4, .5, .6 .................respectively till whatever number of POSU files it will be there inside the OUT directory..... I just know that mv $LINE $LINE.1 will rename the file to .1 ext but i want the above outputs..... |
| Bookmarks |
| Tags |
| scripting, shell script, unix |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|