Ali Hameed
Blogs by Ali Hameed.
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
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment