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