I am looking for an example of an awk statement performing a conditional print or what is wrong with this syntax:<br>
cat $file ¦ awk '{if ($2="Date") print " " $1 " " $2 else print $1}'
Have a look at the "General UNIX discussion Forum" if you like, lots of other UNIX people there. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.