1 year ago
#304160
WorldTeacher
How to remove a part of a Filename using bash
I have a some filenames that I would like to (ideally manually) rename using a bash script which is run every hour using crontab.
The Filenames are as such:
SeriesName v01 (Year) (Other irrelevant Data).ext
SeriesName v02 (Year) (Other irrelevant Data).ext
SeriesName v03 (Year) (Other irrelevant Data).ext
and so on
I would like to rename them to this :
SeriesName 01 (Year) (Other irrelevant Data).ext
SeriesName 02 (Year) (Other irrelevant Data).ext
SeriesName 03 (Year) (Other irrelevant Data).ext
and so on
The files are sometimes in subfolders
How would I do this? I know that I can use find -type f -name '*.ext'
to find all Files that match the extension I want, but how can I remove the v
?
bash
rename
file-rename
batch-rename
0 Answers
Your Answer