Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Sep 2009 16:15:33 -0700
From:      Gary Kline <kline@thought.org>
To:        Kalle =?iso-8859-15?Q?M=F8ller?= <freebsd-questions@k-moeller.dk>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: is there a way of usinf greo to find 3 or 4 blank lines?
Message-ID:  <20090907231533.GB15330@thought.org>
In-Reply-To: <8250ac3f0909062355g69a1cf5cj847e84aaee79b0c2@mail.gmail.com>
References:  <20090906003651.GA7388@thought.org> <8250ac3f0909062355g69a1cf5cj847e84aaee79b0c2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 07, 2009 at 08:55:44AM +0200, Kalle M?ller wrote:
> I know its not in commandline, but in vim (maybe even vi) you could just
> /\n\n\n
> 
> This would find new lines... And you could jump between them with n..
> 
> and :set ruler so you can find linenumber
> 



DIdn't think of this, but it doesn't seem to work in vi or vim.  i think i've got 
vim set to vi-mode.  anyway, the awk script that mark willson posted works.  

next time i'll put in something like XXXXXBREAKXXXXX  for my v-breaks.

gary






> On Sun, Sep 6, 2009 at 2:36 AM, Gary Kline <kline@thought.org> wrote:
> 
> >
> >        in my manuscript, i have many places where i'ved used several
> > newlines to indicate a
> >        jump in time, or topic, or mood, or <<whatever>>.  i have lost these
> > vertical spacing
> >        in all but my original draft.  can i use grep somehow to find these
> > extra newlines?
> >
> >        if not grep, then sed, ed, or what?!
> >
> >        tia,
> >
> >        gary
> >
> >
> >
> > --
> >  Gary Kline  kline@thought.org  http://www.thought.org  Public Service
> > Unix
> >        http://jottings.thought.org   http://transfinite.thought.org
> >    The 5.67a release of Jottings: http://jottings.thought.org/index.php
> >
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > freebsd-questions-unsubscribe@freebsd.org"
> >
> 
> 
> 
> -- 
> 
> Med Venlig Hilsen
> 
> Kalle R. Møller

-- 
 Gary Kline  kline@thought.org  http://www.thought.org  Public Service Unix
        http://jottings.thought.org   http://transfinite.thought.org
    The 5.67a release of Jottings: http://jottings.thought.org/index.php




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090907231533.GB15330>