I currently have a folder which contains files such as:
dog rex -2009.pdf
My objective: trim off all characters between the first 2 characters of the filename and the last character, so the result would be like this:
If possible, I would like to run this script from outside the directory where the files are contained.
I would really appreciate any help.