My shell script has generated a file output.file like below
********************************
DROP TABLE GPS_CONTACT_DETAILS
DB20000I The SQL command completed successfully.
CREATE TABLE GPS_CONTACT_DETAILS ( CONTACT_ID VARCHAR(COUNTRY VARCHAR(20))
DB20000I The SQL command completed successfully.
********************************
Now
i have to generate a report like
GPS_CONTACT_DETAILS successfully
I am trying in all possible ways but not able to get this.
please help. Thanks for your help [/LEFT]
generating file like this
DB20000I The SQL command completed successfully.
DB20000I The SQL command completed successfully.
RMS_RPT_PERIOD_DIM
Now i need report.. like but i dotn know if we can do like this.
RMS_RPT_PERIOD_DIM Successful
abc successfull
as i was not able to do that.. i am tryign to send the lines where successfully word is not there to a different file
so i am trying like this...
grep -L "successfully" $suc_Logfile >> $Final_Suc
I tried to use awk command as well but was not successful