Linux is the fast growing state-of-the-art OS. This blog will focus on new kernel features, Review of the best opensource software and news. HOWTO's will also be added from time to time based on interest.
Monday, June 16, 2008
Removing trailing whitespaces
Removing white spaces entirely from a large file can always be a pain. Here is a simple sed command (inside vim ) that removes it in one shot
:%s/[ ^I]*$//g
NOTE: The ^I is a special character, and is generated by pressing the TAB key
No comments:
Post a Comment