On Friday 6 March 2009, 00:01, Adam Carter wrote:
> > > awk '/^foo/,/^bar/' a
> > >
> > > does the same :)
> >
> > Nice...
>
> Thanks for all these answers. Interesingly when I moved the sed script
> (sed "s/;/\\n/g") from Linux to Solaris it failed as Solaris sed
> doesn't like putting the newline character as the "translated to" bit.
> Installing GNU sed on the Solaris box sorted that out.

Or for the future, with seds that do not like \n in the rhs, you can do

sed 's/;/\
/g' 

Reply via email to