tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: SUBST_SED and newline?



On Sun, Dec 06, 2009 at 03:18:16PM +0100, Georg Schwarz wrote:
> Is it possible to insert a newline into a file using SUBST_SED?

% echo hi | sed 'h;s/hi/ho/;G'
ho
hi
% 

Whether this sort of approach is what you *want* is another question...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index