Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell scripting question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I was wondering if anyone could help me out with this requirement. I've got a log file that gets ftp's over from our AS/400 every 15 minutes to the UNIX box. I'm trying to write a shell script that will automatically grep the log file for certain job information, and build a web page around it.
My problem is that I do not need the entire line from the log file, only a certain portion of it.

Example:
Instead of grepping the file, and having output that looks like this

CPF1124 00 INFO Job 004499/QSYSOPR/BOZZINTRNT started on 01/21/02 at 23:08:03 in subsystem QBATCH in QSYS.

I want output that looks like this

BOZZINTRNT started on 01/21/02 at 23:08:03

Does anyone know how I can extract the info I want from the line, and discard the rest?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top