I have a whole set of directory that is made of symlinks to other files (originally recorded in mythtv - symlinks created via mythlinks). My mythdatabase died but due to the mythlinks I can still find out which file is which.
I would like to (batch if possible) rename the target files of the symlinks to the name of the symlinks ie:
Mar 27 22:12 GreatFilm.mpg -> 123.mpg
Mar 27 22:12 GreaterFilm.mpg -> 456.mpg
so that the target files will be GreatFilm.mpg and GreaterFilm.mpg respectively.
can someone help with this?
thank you for your help
FYI on my ubuntu 17.10 the rename command does not have an option -s / --symlink