Hello ,
I have file with below content :
'165567885',
'165568443',
'165568805',
I need an awk script that would add a prefix zero after first ' .
Like
'0165567885',
'0165568443',
'0165568805',
Please help.
Thanks in advance.
Hello ,
I have file with below content :
'165567885',
'165568443',
'165568805',
I need an awk script that would add a prefix zero after first ' .
Like
'0165567885',
'0165568443',
'0165568805',
Please help.
Thanks in advance.
One way:
awk -F"\'" '{$2="0"$2}1' OFS="\'" file
Thank you !!It works with nawk on my sys.
code :-
nawk '{$0="0"$0}1' input_file
BR
ahmad.diab,
This is not the expected outout:
nawk '{$0="0"$0}1' input_file
0'165567885',
0'165568443',
0'165568805',
sorry guys I miss read the thread , the best solution is Franklin52 solution kindly use it.
BR