GaijinPunch
MIS
I've got a kornshell book that explains this quite well at home, but I'm out of town on business, and need to get this done. Not sure if AWK is the way to do it, but I'm basically doing:
ls -lt |awk '{print $9}' to get the file name. Let's say the filename is:
abc65.cf (later we'll have abc66.cf) and so on. I only want to print/use the 65, IE, the numeric characters. For the meantime, it will always be double-digit, although in the near future it'll be up to triple digit. More importantly, the extension is always the same (.cf) and the first part is always 3 alpha characters.
TIA
ls -lt |awk '{print $9}' to get the file name. Let's say the filename is:
abc65.cf (later we'll have abc66.cf) and so on. I only want to print/use the 65, IE, the numeric characters. For the meantime, it will always be double-digit, although in the near future it'll be up to triple digit. More importantly, the extension is always the same (.cf) and the first part is always 3 alpha characters.
TIA