I am translating a GAWK script into a C# program and I don't know what part of the GAWK script means. I've got the rest of the script figured out but I can't seem to find where to look for the rest of these commands.
I don't have an example of the other .tg files that its reading so I'm copying it blind and I need to get it right.
These are the lines:
date +"Report prepared %a %b %e %T %Y" >! $XTRAFILE
set ntg=`awk '\!/^#/{if(NF)print}' *.tg ad_tgs | wc -l`
Questions:
Am I right in assuming that it puts the ">!" puts the "Report prepared" at the top of the $XTRAFILE?
Also, I don't know what the "%a %b %e ..." is.
Finally, is the line starting with "set ntg" counting the lines in the ad_tgs file?