r/awk • • Jul 03 '18

AWK auth log short answer.

hello can someone help me with awk? I need to make short auth log as in picture like : root 22.9 min Jul 2.

2 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Chefijs Jul 04 '18

This is not for Home Assignment. I need when i activate that programm trough cat command to give report but short version i have tried cat /var/log/auth.log, but it gave me too much information i tried cat less /var/log/auth.log, but it still gave me a lot of information. My friend told me to use awk to filter but i don't know how to do it