umshiva
June 12th, 2008, 05:42 AM
Hi Buddies,
cn.rep:REP008 MTH 30/05/2008-22:08:21 RETRY.... 2
cn.rep:REP030 MTH 30/05/2008-22:17:20 RETRY.... 2
My program is ...
cut -f 1,2 -d ":" rep_temp > temp_retr
cat temp_retr | while read line
do
echo $line >> extract_retry
done
sed '$s/...$//g' extract_retry >temp_retry
sed 's/:/ /g ' temp_retry > temp1_retry
My output is
cn.report REP008 MTH 20080530 30/05/2008-22
cn.report REP030 MTH 20080530 30/05/2008
I need to have
cn.report REP008 MTH 20080530 30/05/2008
cn.report REP030 MTH 20080530 30/05/2008
as output
and morover i need to generate other file
which will have
REP008 20080530 -- RETRY ENTRY
REP030 20080530 -- RETRY ENTRY
NO OF RETRY ENTRIES : 2
CAn any one help me with this .....
Thanks in advance
cn.rep:REP008 MTH 30/05/2008-22:08:21 RETRY.... 2
cn.rep:REP030 MTH 30/05/2008-22:17:20 RETRY.... 2
My program is ...
cut -f 1,2 -d ":" rep_temp > temp_retr
cat temp_retr | while read line
do
echo $line >> extract_retry
done
sed '$s/...$//g' extract_retry >temp_retry
sed 's/:/ /g ' temp_retry > temp1_retry
My output is
cn.report REP008 MTH 20080530 30/05/2008-22
cn.report REP030 MTH 20080530 30/05/2008
I need to have
cn.report REP008 MTH 20080530 30/05/2008
cn.report REP030 MTH 20080530 30/05/2008
as output
and morover i need to generate other file
which will have
REP008 20080530 -- RETRY ENTRY
REP030 20080530 -- RETRY ENTRY
NO OF RETRY ENTRIES : 2
CAn any one help me with this .....
Thanks in advance