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
Convert chinese caracters
Excel Chart Library Development in VB.NET/C#
Cross-forest trust: The domain controllers required to find the selected objects in the following domains are not available
CSS wrong MIME type in Firefox on Apache, AddType text/css .css is there
Driver for Ikon cpp 500 printer
Compare two excel files
Hosted AD Domain Service - a best practice ?
Calculate current percentage of month that has elapsed
How do I see what traffic is traversing my Cisco 2811 router?
Self signed SSL certificate for Outlook Anywhere & OWA - Exchange 2010