Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2004 20:22:02 -0500
From:      Vulpes Velox <v.velox@vvelox.net>
To:        Jon Drews <jon.drews@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pattern replacement
Message-ID:  <20040704202202.75528a32@vixen42.24-119-122-191.cpe.cableone.net>
In-Reply-To: <8cb27cbf0407041551160a3b@mail.gmail.com>
References:  <20040704170807.2ea1ec75@vixen42.24-119-122-191.cpe.cableone.net> <8cb27cbf0407041551160a3b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Jul 2004 17:51:22 -0500
Jon Drews <jon.drews@gmail.com> wrote:

> Hi:
> 
>  Sed is useful for this. Here are some good tutorials on it:
> 
> Common threads: Sed by example:
> http://www-106.ibm.com/developerworks/linux/library/l-sed1.html
> http://www-106.ibm.com/developerworks/linux/library/l-sed2.html
> http://www-106.ibm.com/developerworks/linux/library/l-sed3.html

Cool, thanks... I working on something with a fix using head, grep,
and cut :)

Basically grep -n for #include or whatehet, pipe it into
head -n 1 it, and then head -n (pervious number cut and minus one> the
file, then >> the include into it, and the this is where I am stuck...
I can't find a way to cat everything after a certian line number
out :/



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