Had to recover my music library from a HDD which died…. got everything I wanted but all music track names have _000 added at the end.
I really don't fancy going through 8000 individual music tracks and choosing to rename in order to remove the _000 string
How can I search the entire Music folder containing all the album sub-directories and remove every instance of _000 on all the individual track names?
Best Answer
Although mikesrv solution is much better and safer I think this can be done also with rename:
But there are still potential problems as mentioned, for example
album_00020_000
will be renamed toalbum20
which obviously is not the desired behaviour.I think on debian distribution was a
perl
tool rename which could do it. But unfortunately I can not find a way how to install it. So I found followingperl
script here which can suffice:So you can make this script executable and run: