vi editor: remove lines longer than 40 characters

when i was working with mail address , one stage i had to export the contact list to a file and found there is junk mail address which obviously long lines like


so i found a way to remove all lines longer than 40 characters with the most powerful VI editor


open your file in vi


# vim filename

and type this


whala! you will see a message – something like this

324 fewer lines




WP Twitter Auto Publish Powered By :