i have a file, in it I need to extract some data that follows a particular pattern..
For example: my file contains like
now running Speak225
sep 22 mon 16:34:05 2008
\--------------------------------
\--------------------------------
now running BBp499
sep 22 mon 16:36:15 2008
\------------------------------
\----------------------------
I need to get the names which follows "now running" and times in the precceding lines...
for that i need to get the line numbers and extract the required information..
Can anyone please help me.. That pattern exists so many times in the file and i need to get for all the times it happens using shell scripting .thank you