deleting all spaces at end of line in vi
How can I delete, all (blank) spaces at end of each line in vi editor.
|
Not sure in vi but this is a little sed statement that does it:
Code:
sed 's/ *$//' oldfile > newfile |
Same in vi :)
|
In vi it is a : command
Code:
:%s/ *$// |
All times are GMT -5. The time now is 04:52 AM. |