Command to rename multiple files in one go
Hi all,
I have few directories containing around 96 files each. All I want to rename those 96 files names...Example of filenames is shown below::: TaeCsp2AS_1635B03.fsa TaeCsp2AS_1635B04.fsa TaeCsp2AS_1635B05.fsa TaeCsp2AS_1635B06.fsa TaeCsp2AS_1635A11.fsa TaeCsp2AS_1635A12.fsa TaeCsp2AS_1635C06.fsa TaeCsp2AS_1635C04.fsa here I want their names to be like TaeCsp2AS_1635_B03.fsa TaeCsp2AS_1635_B04.fsa TaeCsp2AS_1635_B05.fsa TaeCsp2AS_1635_B06.fsa TaeCsp2AS_1635_A11.fsa TaeCsp2AS_1635_A12.fsa TaeCsp2AS_1635_C06.fsa TaeCsp2AS_1635_C04.fsa it only need to replace TaeCsp2AS_1635 with TaeCsp2AS_1635_ i.e, we have to append a _ with 1635.. |
Have a look at the rename command or a simple for loop.
|
m newbiw here , tried a lot ,, got many commands to rename single file, but didn't get any usefull one for renaming bunch of files simultaneously
|
man rename
Basically - "rename <expression> <replacement> <file>...", and the ... is for multiple files Code:
... should do the job. |
All times are GMT -5. The time now is 04:23 AM. |