Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2008 10:51:47 -0400
From:      Sahil Tandon <sahil@tandon.net>
To:        Sebastian Tymk?w <sebastian.tymkow@gmail.com>
Cc:        freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Sed in FreeBSD
Message-ID:  <20080705145147.GC2605@shepherd>
In-Reply-To: <692660060807050706i6e02fe04t840bc0a2aff1e8ae@mail.gmail.com>
References:  <692660060807050706i6e02fe04t840bc0a2aff1e8ae@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sebastian Tymk?w <sebastian.tymkow@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@tandon.net>



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