[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep
From: |
Morsal Roudbay |
Subject: |
grep |
Date: |
Sat, 19 May 2001 13:45:44 +0200 |
Hi,
I have several logs and I'd like to remove lines containing a certain IP...
I know how to use grep in order to put all logs with a certain IP to another
file like this:
cat /var/log/messages | grep 192.168.0.1 > local.log
But how do I remove all the lines in /var/log/messages that contain
192.168.0.1 ? (will make my log much smaller :)
TIA
Morsal
[Prev in Thread] |
Current Thread |
[Next in Thread] |