timebandit wrote:
�r det n�gon som vet hur man kan ta ut allt efter ordet "from" till en
fil? Detta skulle underl�tta f�r mig r�tt mycket...


Feb 4 20:18:03 DZN sshd[8877]: Failed password for root from 200.53.114.42 port 4134 ssh2 Feb 4 20:18:08 DZN sshd[8881]: Failed password for illegal user test from 200.53.114.42 port 4231 ssh2

Hej!

Jag antar att nedanst�ende �r ungef�r vad du �r ute efter.

# grep "Failed password for" /var/log/auth.log | sed 's/ from /#/' | cut -d "#" -f 2 | cut -d " " -f1 | sort -u

mvh
/Martin Leben
--
Remove dashes and numbers (if any) to get my real email address.
I subscribe to the mailing lists i write to.
Please don't CC me on replies.


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Till