Now i need to generate a file in shell script where it shows only abc.
Now i am doing like this
grep "^successfully\|$" $suc_Logfile >> $Final_Suc
Pls help.
Hi Durden , I got confused. let me write it clearly here.
I have a outfile generated like this.
DB20000I The SQL command completed successfully.
DB20000I The SQL command completed successfully.
abc
DB20000I The SQL command completed successfully.
DB20000I The SQL command completed successfully.
def
DB20000I The SQL command completed successfully.
DB20000I The SQL command completed successfully.
ghi
DB20000I The SQL command completed successfully.
DB20000I The SQL command completed successfully.
jkl