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
HELO server unrecognized command
Reading data off Raid 0
SBS 2008 shared folder permissions problem - read only - need full control
Whats wrong with my css?
Mounting a Windows XP share under linux
Wireless LAN , Larger Scale
intuitive understanding of the area under the curve - again
Office 2010 MSI GPO Installation
perl script to find the netid given ip and subnet mask?
mcafee EPO script to remove agent and virusscan