I am trying to write a CSH script that will look at components of the filename to generate a date/time. The problem is, I have no idea how to extract part of a filename to use it. Here is a sample filename:
nam_218_20140126_1800_001.grb
20140126 is the date portion of the filename and 1800 is the time. I need to extract it and convert it to 2014-01-26_18:00:00 for use in an environment variable. Any hints?
Thanks