[lug] awk help

William Jarosko Jr. winrip at fpcc.net
Mon Jan 24 09:39:23 MST 2000


Well after using awk for the first time last night I have a question,
well I have several but this one I'm having trouble finding an answer
to. I'm using this command;

  awk '/log/ {print $10 $12}' /var/log/secure

 Now here's my question, how can I place a space in the output from
field 10 to field 12. The command works as it should however, the
username and machine name are lumped together. I'd like to make the
output a little more readable using a space or even a tab.

Thanks in advance.
Bill.





More information about the LUG mailing list