Hi Masters ,
I have a file whose header is like
HDRCZECM8CZCM000000881 SVR00120100401160828+020020100401160828+0200CZK
There is a space between 1 and S ,my req is to chng the space to T
I tried echo `head -1 CDCZECM8CZCM000000881` | sed 's/ /T/'
it works ,but how can I modify in the original file.
Thanks in advance
awk 'NR==1{sub(" ","T")}1' file > file.tmp; mv file.tmp file
Hi bartus11 ,
thanks a lot for your reply.
However i am facing following error:
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
awk: bailing out near line 1
Can you please suggest
Tytalus
September 6, 2010, 7:24am
4
use nawk or /usr/xpg4/bin/awk (guessing you're on Solaris)
Its working .
Thanks a lot to both of you...