Thursday, December 15, 2011

Add a character before every line (Linux)

Add a character before every line:


To add ; before every new line open the file in vi editor and paste the below command and press enter!

:%s/^/;/g

type :w to save the changes and then :q to quit.

No comments:

Post a Comment