Sed in FreeBSD

andrew clarke mail at ozzmosis.com
Sat Jul 5 14:51:50 UTC 2008


On Sat 2008-07-05 16:06:39 UTC+0200, Sebastian Tymk?w (sebastian.tymkow at gmail.com) wrote:

> I'm trying to use sed in script to append file after pattern but I couldn't
> find any good example how can I do it.
> I've tried with sed -e '/PATTERN/ a\ line' file but this did'n work. There
> are many axamples in internet but none of them work on FreeBSD.

I'm not too familiar with sed and so am unsure what you're trying to.

It looks as though BSD sed is supplied with in the FreeBSD base
system.  You might want to try GNU sed instead.  It's in the Ports
tree - textproc/gsed.

If neither of them work for you then you've probably made a mistake
with your input.


More information about the freebsd-questions mailing list