![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Renaming multiple files | jayell | Shell Programming and Scripting | 7 | 01-12-2009 04:27 PM |
| Renaming multiple files | amit4g | Shell Programming and Scripting | 2 | 07-14-2008 08:36 AM |
| Renaming multiple files | rmayur | UNIX for Dummies Questions & Answers | 6 | 02-26-2004 04:40 AM |
| Renaming multiple files | jxh461 | Shell Programming and Scripting | 4 | 04-01-2003 06:25 PM |
| renaming multiple files | piltrafa | UNIX for Dummies Questions & Answers | 6 | 11-10-2001 12:27 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Renaming Multiple files
Hi All my dear friends
I had multiple files in my directory with .pcv and .sqv extn I want to rename all .pcv files with .pc extn and all .sqv files with .sql extn Please help me out. ![]() ![]() ![]() e.g. /trimsbld/users/dhirens/scripts/newfolder==>ll -rt total 2856 -rwxr-xr-x 1 dhirens trims 62365 Sep 11 20:01 IF_GetTransacITRRec.pcv -rwxr-xr-x 1 dhirens trims 159780 Sep 11 20:01 PR_UpdateTableSet.pcv -rwxr-xr-x 1 dhirens trims 61774 Sep 11 20:01 IF_GetFcmITRRec.pcv -rwxr-xr-x 1 dhirens trims 33205 Sep 11 20:01 IF_MapFcmITRRecLC.pcv -rwxr-xr-x 1 dhirens trims 115158 Sep 11 20:01 IF_MapFcmITRRecBill.pcv -rwxr-xr-x 1 dhirens trims 330971 Sep 11 20:01 IF_GetTransacITRRec.sqv -rwxr-xr-x 1 dhirens trims 355983 Sep 11 20:01 IF_MapTransacITRRec.sqv -rwxr-xr-x 1 dhirens trims 36919 Sep 11 20:01 IF_MapTransacITRRecLC.pcv -rwxr-xr-x 1 dhirens trims 124073 Sep 11 20:01 IF_MapTransacITRRecBill.pcv -rwxr-xr-x 1 dhirens trims 128078 Sep 11 20:01 PR_UpdBillTables.pcv |
|
||||
|
Quote:
Code:
ls *.sqv|sed 's/\(.*\)\..*/mv & \1.sql/'|sh ls *.pcv|sed 's/\(.*\)\..*/mv & \1.pc/'|sh |
![]() |
| Bookmarks |
| Tags |
| renaming multiple files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|