Microsoft
Software
Hardware
Network
Question : Pattern mathcing and printing in file
I have log file which has lots of entries like this:
<started-me>1234</started-
me>
I want to pick this entire pattern and print it on another file, value "1234" will continuously change in each entry
Can anyone help in this regard?
Answer : Pattern mathcing and printing in file
perl -ne 'print if m(<started-me>.*</started-me>)
' log.file > another.file
Random Solutions
SQL Query
Cant access internet through Cisco PIX 515
Monitor
Cisco 2960 Crashing - Restarting at random
Dead harddrive - clicking sound
Will esxi 4.0 support 2 sun processors (x6379a) on a sunfire x4450 ?
Replacing Design lost all e-mails in inbox
Scan FreeBSD Web server for virus
PC died while under my care. Fair Solution / Proposal to Client
Transit Vlan