joeroe3380
MIS
I have the following numerous line in input file:
nvl(MP_MID_INIT_TXT, ' ') || 'M-G' ||
lpad(nvl(MP_SEQ_IMS_ID, 0), 3, 0) ||
lpad(nvl(MP_IMS_ID, 0), 7, 0) || 'M-G' ||
from which i need to delete the || 'M-G' || and || occurrances.
I tried with the following sed statements :
sed "s/^|| $||/ /g" outdat.sql > osql.sql
sed "s/|| 'M\-G' ||/ /g" /development/uda/sql/outdat.sql > osql.sql
but doesnt create the required output.
Could you please let me know as to what i m missing??
Thanks a lot again!
Roe
nvl(MP_MID_INIT_TXT, ' ') || 'M-G' ||
lpad(nvl(MP_SEQ_IMS_ID, 0), 3, 0) ||
lpad(nvl(MP_IMS_ID, 0), 7, 0) || 'M-G' ||
from which i need to delete the || 'M-G' || and || occurrances.
I tried with the following sed statements :
sed "s/^|| $||/ /g" outdat.sql > osql.sql
sed "s/|| 'M\-G' ||/ /g" /development/uda/sql/outdat.sql > osql.sql
but doesnt create the required output.
Could you please let me know as to what i m missing??
Thanks a lot again!
Roe