Date: Sat, 05 Jul 2008 10:56:56 -0400 From: James Bailie <jimmy@mammothcheese.ca> To: =?ISO-8859-1?Q?Sebastian_Tymk=F3w?= <sebastian.tymkow@gmail.com> Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Sed in FreeBSD Message-ID: <486F8BB8.6040704@mammothcheese.ca> 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 wrote: > 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. The inserted line needs to be on a separate physical line. sed -e '/PATTERN/a\ line' For /bin/csh, you need two backslashes because the shell recognizes backslashes inside single-quotes, which it shouldn't. -- James Bailie <jimmy@mammothcheese.ca> http://www.mammothcheese.ca
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?486F8BB8.6040704>