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
Remove space from textbox automatically
perl regexp with div tags and space
MySQL IFNULL() selection
iPad Camera Connection Kit does not display .jpg images on iPad
DHCP and 255.0.0.0 subnet mask
Data truncated MYSQL
Mounting NFS NAS in ESX 3
cisco routers and switches
Help with Lucene query in Alfresco
I need a wicket sql script/query