So far what I know.
the '^' character is a special search character denoted for the start of line.
and g denoted to global change.
Based on How to add text at the end of each line in Vim? and How to insert text at beginning of a multi-line selection in vi/Vim
: - enter command mode
% - for every line
s/ - substitute
$ - the end of the line
/ - and change it to
, - a comma
Below there is: 3 fields: integer, string/alphabetic, integer.
I have been trying to solve the following problems.
insert a comma
,
after first integer value field.insert single quote
''
for the second alphabetic string,insert an comma to separate string value field to the last integer value field.
(1 a 80
(1 b 50
(2 a 90
(2 b 120
(3 a 200
(3 b 140
(4 a 110
(4 b 430