[SunHELP] grepping lines

Mike Meredith sunhelp at sunhelp.org
Fri Feb 23 12:19:58 CST 2001


On Fri, 23 Feb 2001, you wrote:

> >  Hi all unix guru's.
> I want to "cat" a file and then choose all lines between 2 and 10. 
> how can i do this? Thanks

echo "2,10p\nq\n" | ed -s file



More information about the SunHELP mailing list