Go to the FreeLists Home Page Home Signup Help Login
 



Browse glug_t: This Month's ArchiveMain Archive PageRelated postsPrevious by DateNext by Date

[glug-t] Re: removing blank lines in emacs

  • From: Vimal Joseph <vimalekm@xxxxxxxxx>
  • To: glug_t@xxxxxxxxxxxxx
  • Date: Sun, 10 Apr 2005 09:56:35 +0530
On Sat, 2005-04-09 at 14:08 +0530, Vignesh Waran wrote:
>              There is a  'C' program which has many blank lines in it,
> how to remove all the blank lines with query-replace in emacs ?

M-x flush-lines RET ^$

flush-lines deletes all lines that matches the regular expression. and
the reg exp ^$ matches empty lines ie lines with only RET.

BTW what is the regexp to match a blank line? 

~vimal



-- 
Free as in Freedom <www.gnu.org>

---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts:

  • [glug-t] removing blank lines in emacs
  • [glug-t] Re: removing blank lines in emacs
  • [glug-t] Re: removing blank lines in emacs
  • [glug-t] Re: removing blank lines in emacs
  • [glug-t] Re: removing blank lines in emacs
  • [glug-t] Re: removing blank lines in emacs




  • [ Home | Signup | Help | Login | Archives | Lists ]

    All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
    Everything else ©2008 Avenir Technologies, LLC.