![]() |
|
|
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 |
| Removing ^D and ^H characters | arsheshadri | HP-UX | 1 | 06-26-2008 09:01 AM |
| Special meaning characters in dir names | JWilliams | UNIX for Dummies Questions & Answers | 2 | 03-07-2008 07:39 AM |
| Weird Ascii characters in file names | yamsin789 | Shell Programming and Scripting | 2 | 10-07-2007 11:27 AM |
| Help with removing characters like ^M | chiru_h | Shell Programming and Scripting | 16 | 02-13-2007 10:07 AM |
| Replace characters in all file names in a particular directory | madhunk | Shell Programming and Scripting | 4 | 02-16-2006 07:10 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi, I'm relatively new to unix, and would like to change the following files in a particular directory. The files have names like:
M10_90_Phcn402_3F.ab1 M10_94_Sput402_3F.ab1 M11_92_Abrg402_3R.ab1 M10_91_Cdel402_3F.ab1 M11_90_Phcn402_3R.ab1 M12_84_Sput402_3R.ab1 M10_93_Ehdr402_3F.ab1 M11_71_Cdel402_3R.ab1 M12_95_Epic402_3R.ab1 I would like to remove the first 7 characters of each file. For instance, in the first one, I would like M10_90_ to be removed, so the file name becomes Phcn402_3F.ab1 I have been playing with: for x in M1*;do mv $x ${x/nnn/};done I'm not sure what the correct expression is to remove the first 7 characters (not sure what to put in place of "nnn"). Is there a fast way to do this, or is there a different way to do this, maybe with "rename"? Thanks Last edited by euspilapteryx; 10-17-2009 at 07:31 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|