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
Offline address book cannot be downloaded after moving mailbox to exchange 2010
open Firmware
Problem with file name comparison in unix script
SUP7203B PFC incompatibility
VB.net 32bit&64bit COM Refereces?
Server 2008 R2 - Can Connect to Server By IP, but not computer name
Popup not working in IE
Dot Net Written Test and Interview questions, Can any 1 suggest link
Sort Mysql table with recent entries
Built-In Webcam Stopped Working on Lenovo ThinkPad