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
how to indent a block of text
Delete Outlook Cache
"Cannot copy <file name>. The parameter is incorrect"
Access idrac card in poweredge
Adding a Line Break and Center Text in a Submit Button
Spell Checker, ASP.NET
How to avoid error message when no record can be returned.
How to hide a dummy date value.
Windows player for Twonky media server
Batch printing word document to non-default printer