Hi,
How do I insert character (e.g. , or .) at certain positions in a line? For example I want to insert a period ( . ) after the first 4 characters of every each line in the file. I cannot do it in sed command. I'm playing with my script using perl command but to no avail. Please advice. Thanks in advance.
See below:
Input:
Desired Output:
Br,
Pete
How do I insert character (e.g. , or .) at certain positions in a line? For example I want to insert a period ( . ) after the first 4 characters of every each line in the file. I cannot do it in sed command. I'm playing with my script using perl command but to no avail. Please advice. Thanks in advance.
See below:
Input:
Code:
12345 67890 23456 78901 34567
Code:
1234.5 6789.0 2345.6 7890.1 3456.7
Br,
Pete
Comment