I'm trying to rename all the files in a directory in csh (I'm using FreeNAS).
I thought I had the hang of it until I accidentally prepended to the whole file name so now I have files of the format
Veronica Mars - 1x22 Leave It to Beaver.mkv - HDTV 720p
and would like them in the format of
Veronica Mars - 1x22 Leave It to Beaver - HDTV 720p.mkv
I would like to do this purely with a script so that I can ssh in to my box and run it without having to install anything extra.