[SunHELP] grepping lines

Mike Meredith sunhelp at sunhelp.org
Sun Feb 25 13:44:34 CST 2001


On Sun, 25 Feb 2001, you wrote:
> I have to deal with that a lot, too ("you didn't reply to my email
> properly, you're supposed to start at the top...". uuuurrr!).

Most of the time I'm too lazy to mention it, but at least I stick my 
own replies in the proper place --- so the whole message is 
comprehensible.

> > > >echo "2,10p\nq\n" | ed -s file
>
> Anyway. I tried your line on our Solaris 8 box under ksh, and it
> works just like you said it would.

I think I may have figured out the problem; if you're using a shell 
without echo builtin, and you have /usr/ucb in your path before /bin 
(or anywhere else echo might be), you'll end up with an echo that won't 
expand the '\n'.



More information about the SunHELP mailing list