Tuesday, August 20, 2019

How to add a semicolon (or any other character) at the end of a line using vi

Open your text file in vi, and type

:%s/$/;/g

this will add a semicolon at the end of each line in your file.

No comments:

Post a Comment