Hi,
I am having a file which contains as below
Names(aaaa
,bbbb
,cccc
,dddd)
now i want the file to be updated with new value 'eeee' as below
Names(aaaa
,bbbb
,cccc
,dddd
,eeee)
Is there a way to script this ?
Thanks,
drams
Hi,
I am having a file which contains as below
Names(aaaa
,bbbb
,cccc
,dddd)
now i want the file to be updated with new value 'eeee' as below
Names(aaaa
,bbbb
,cccc
,dddd
,eeee)
Is there a way to script this ?
Thanks,
drams
sed 's/\)\
,eeee\)/' filename
Thanks for the reply madhan, but i am getting function cannot be parsed error.
Sorry for the wrong post
this should work
sed 's/)/\
\,eeee)/' filename
Thanks a lot!!! It worked..
what if i am having one more field in the file like
Names(aaaa
,bbbb
,cccc)
count(3)
and i want to update 'eeee' to Names only in file and count to 4 like
Names(aaaa
,bbbb
,cccc
,eeee)
count(4)
Can i do that with script?