This is a discussion on Shell scripting - Removing file extension within the Shell scripting forums, part of the Development/Scripting category; I have a bunch of files in a directory and I need to remove everything with a .err back to ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
I have a bunch of files in a directory and I need to remove everything with a .err back to the .dat
PQPZ3.DATR.QRL.R9529.M9097.D090295.T19501.das.1333 332287722.1.2.err PQPZ3.DATR.QRL.R9529.M9097.D090295.T19501.das |
| Sponsored Links | ||
|
|
|
||||
|
Do you wanna rename all .err files to .dat? if so use rename command as follow:
Code:
rename 's/\.err$/\.dat/' *.err Code:
rename 's/\.err$//' *.err Let me know if you need any further help ... |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parse XML file and store data in array in shell scripting | Nishanthhampali | Shell scripting | 5 | 02-14-2008 12:57 PM |
| need help on shell scripting | rahul_sayz | Shell scripting | 1 | 12-08-2007 11:37 AM |
| Shell Script for adding, removing and commiting the SVN (Subversion system ) | anilvrathod | Shell scripting | 0 | 12-07-2007 06:40 PM |
| Books on Shell-Scripting | shankar100 | Shell scripting | 3 | 02-16-2007 02:19 PM |
| Learning Shell Scripting | ricc | Shell scripting | 4 | 08-30-2005 10:37 AM |