i have the following script to read the date for a file :
- get_mdate.awk
{
timestamp = substr($0, 42, 12)
month = substr(timestamp, 1, 3)
day = substr(timestamp, 5, 2)
thisyear = substr(todaydate, 1, 4)
thismonth = substr(todaydate, 5, 2)
if (month == "Jan") {
monthnum = "01"
}...