Quote:
Originally Posted by
danmero
Please post sample data and required output.
Ok!
I have this log:
Aug 31 08:54:23 Parallels[92]: Loading Virtual Ethernet module...
Aug 31 08:54:32 Parallels[104]: Initialization complete.
Aug 31 08:54:32 192.168.0.254 yyyyyyyyyy xxxxxx
Aug 31 08:54:52 192.168.0.254 : yyyyyyyyyyyy zzzzzzzzzz
Aug 31 08:54:31 Parallels[97]: Staring DHCP/NAT daemon...
And i want to extract the 192.168.0.254 rows and copy that in an other logfile.
The "clean" log should be like this:
Aug 31 08:54:23 Parallels[92]: Loading Virtual Ethernet module...
Aug 31 08:54:32 Parallels[104]: Initialization complete.
Aug 31 08:54:31 Parallels[97]: Staring DHCP/NAT daemon...
and this is the new log:
Aug 31 08:54:32 192.168.0.254 yyyyyyyyyy xxxxxx
Aug 31 08:54:52 192.168.0.254 : yyyyyyyyyyyy zzzzzzzzzz
But i'm trying to do this in ony one command row.