kornShellScripter
Programmer
Hi,
I have the following input:
* Report Title ******** Thu 26 Apr, 2007 6:00 AM *
<rest of report snipped>
I need to extract the date from this line
I'm using:
OUT_TEXT_DATE=$(head -1 $FILE_NAME| nawk '{print $6, $7, $8}')
Which produces:
"26 Apr, 2007"
I'm looking for an elegant(1) way to remove the "," such that the output is:
"26 Apr 2007"
(1)-rather than split the fields up and use sed to remove it, and which would make the script more ugly
Regards.
I have the following input:
* Report Title ******** Thu 26 Apr, 2007 6:00 AM *
<rest of report snipped>
I need to extract the date from this line
I'm using:
OUT_TEXT_DATE=$(head -1 $FILE_NAME| nawk '{print $6, $7, $8}')
Which produces:
"26 Apr, 2007"
I'm looking for an elegant(1) way to remove the "," such that the output is:
"26 Apr 2007"
(1)-rather than split the fields up and use sed to remove it, and which would make the script more ugly
Regards.