1

How to loop this BASH statement correctly?

view story
linux-howto

http://stackoverflow.com – What is the best loop to use on this line of code I made, that goes through a log file and finds lines that are failed in $6? Pretty fresh to BASH and LINUX and cant get any loop to work properly. Sep 13 12:09:39 icarus sshd[14043]: Failed none for invalid user 55659 Sep 13 12:09:43 icarus sshd[14043]: pam_unix(sshd:auth): check pass; user unknown Sep 13 12:09:43 icarus sshd[14043]: pam_unix(sshd:auth): Sep 13 12:09:44 icarus sshd[14043]: Failed password for invalid user 55659 Sep 13 12:09:48 icarus sshd[14043]: pam_unix(sshd:auth): check pass; user unknown Sep 13 12:09:50 icarus sshd[14043 (HowTos)