Friends:<br>
<br>
Is there anybody who can help me to format Date result in awk program?<br>
I usede "DATE" ¦ getline dd<br>
printf (dd)<br>
and got something like this:<br>
Fri Jan 28 09:53:04 CST 2000<br>
<br>
Question:<br>
<br>
If I want to format it as CCYYMMDDhhmmss, do you know any simple way<br>
in AWK instead of spliting the whole line and then process each part?<br>
With this way, the month ("Jan" here) needs to be converted to "01" by <br>
some coding lines. It's easy but I just guess maybe there is a straitforward <br>
way in awk I have not known. <br>
<br>
Any idea?<br>
<br>
mzh<br>
<br>
Please send answer to <A HREF="mailto:mz_huang@hotmail.com">mz_huang@hotmail.com</A>
<br>
Is there anybody who can help me to format Date result in awk program?<br>
I usede "DATE" ¦ getline dd<br>
printf (dd)<br>
and got something like this:<br>
Fri Jan 28 09:53:04 CST 2000<br>
<br>
Question:<br>
<br>
If I want to format it as CCYYMMDDhhmmss, do you know any simple way<br>
in AWK instead of spliting the whole line and then process each part?<br>
With this way, the month ("Jan" here) needs to be converted to "01" by <br>
some coding lines. It's easy but I just guess maybe there is a straitforward <br>
way in awk I have not known. <br>
<br>
Any idea?<br>
<br>
mzh<br>
<br>
Please send answer to <A HREF="mailto:mz_huang@hotmail.com">mz_huang@hotmail.com</A>