Okay I like the diff command.
diff arlog arlog.NWS | tr -d '\t ' | awk -F \| ' { print $1$2 } ' >> NEWERRORS
Next:
I would like to add: NEW TIME STAMP AT: `date` in the new file. Where can I put this portion of text. Let me explain. Since I will be searching the NEWERRORS log and it will look something like:
<NoLBAHLingotitdirectory
<****Removingarmonfilein/export/home/fininter/load
</loader/findev/log/FriFeb1716:30:21EST2006
<****Creatingarmonfilein/export/home/fininter/load
<*********LOCKBOX-GETBANKFILEFROMendeavour
<lbhap_get_bank_fileY
<CheckforLBHAPfileinendeavourdirectory
<NoLBHAPingotitdirectory
<lbahl_get_bank_fileY
<CheckforLBAHLfileinendeavourdirectory
<NoLBAHLingotitdirectory
<****Removingarmonfilein/export/home/fininter/load
</loader/findev/log/FriFeb1716:32:21EST2006
<****Creatingarmonfilein/export/home/fininter/load
<*********LOCKBOX-GETBANKFILEFROMendeavour
<lbhap_get_bank_fileY
<CheckforLBHAPfileinendeavourdirectory
<NoLBHAPingotitdirectory
<lbahl_get_bank_fileY
<CheckforLBAHLfileinendeavourdirectory
<NoLBAHLingotitdirectory
<****Removingarmonfilein/export/home/fininter/load
---
>
NEWTIMESTAMPAT:WedFeb1515:25:12EST2006
>/appl/finance/findev/ar/bin/arlog.NWS:NEWTIMESTAMPAT:WedFeb1515:25:12EST2006
>
NEWTIMESTAMPAT:WedFeb1515:48:16EST2006
<data> 0403-031 The fork function failed. There is not enough memory available.
<data>
<data>ftp: connect: Connection timed out.
<data>
<data>
>
NEWTIMESTAMPAT:WedFeb1519:04:07EST2006
<data>
<data>ORA-06508: PL/SQL: could not find program unit being called.
<data>
<data>
>
NEWTIMESTAMPAT:WedFeb1520:05:38EST2006findev:/appl/finance/findev/ar/bin: F \| ' { print $1$2 } ' >> errors <
findev:/appl/finance/findev/ar/bin: vi errors
"errors" 548 lines, 19849 characters
"errors" 548 lines, 19849 characters
1,541c1,5
Of course it doesn't look like this as of yet but I would like it to get there.