I have a file
H,20180624200732,VPAS,TRANS_HDR,20180724,
VPAS.TRANS_HDR.20180724.01.txt, ,93,
T,1,
I have to change and instead first comma put ",1" like below
H,20180624200732,VPAS,TRANS_HDR,20180724,
VPAS.TRANS_HDR.20180724.01.txt,1,93,
T,1,
I made
sed "2s/, /,1/" $CONTROLFILE
and it put nothing to the file
I tried
sed "2s/, /,1/" $CONTROLFILE > $CONTROLFILE
In this case the file is empty
Please advise what can I do to have "....,1,...." in the file in second line
Everything I do from the shell script. let me know if I have to put all source code
Thanks for contribution