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  
 
programming4us programming4us