pattern replacement

Vulpes Velox v.velox at vvelox.net
Sun Jul 4 18:22:00 PDT 2004


On Sun, 4 Jul 2004 17:51:22 -0500
Jon Drews <jon.drews at 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 :/


More information about the freebsd-questions mailing list