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
Static route to website in Squid
Dynamically Change .XSD File Location in Crystal Reports Using ASP.NET 2.0
Constant BSOD on boot/install of Windows 7
Pervasive SQL 9.5 - odbc SELECT Query - DATE = '0000-00-00'
Spanning-tree Cost to block uplink to core Switches.
cheap replacement fan
Seeking advice on a hosting vendor
Deploy Printer Drivers to WinXP Computers
ORA error-too many values
CRM Backstop