I have file names that look something similar to this
name_1.23.ps.png
or
name_1.23.ps.best
or
name_1.23.ps
I want to take off the random file extensions on the end and be left with just
name_1.23.ps
Other questions similar to this use '.' as a delimator but this removes everything after name_1.
I want to do this on the command line (in tcsh or bash)