Sed in FreeBSD

Sahil Tandon sahil at tandon.net
Sat Jul 5 14:51:51 UTC 2008


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.

Based on sed(1), I think you need something like:

sed '/PATTERN/ r file' 

-- 
Sahil Tandon <sahil at tandon.net>


More information about the freebsd-questions mailing list