Help Guide For Software Engineer
Thursday, December 29, 2016
Remove last char in vi
Following Linux commands can be used to replace last character in vi editor.
1. Open file using vi editor
2. Run the following command to replace last char
:%s/.$//g
3. Save file using :wq!
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment