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
Need help opening a MODI doc via Access 2003 VBA
Elevate user security to admin in Windows 7
Use different HTTP Redirects on multiple virtual directories in IIS 7.5
Default Printer Changes using Terminal Server
Mixing x32 and x64 apps and OS's
LINQ can't be used in Web app?
Sorting in Java
Auto Send Excel as Email Attachment
SBS 2003 Backup Solution
SpellNumber