[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl Question
- Subject: [ale] Perl Question
- From: danny at compgen.com (Danny Cox)
- Date: Mon, 16 Oct 2000 14:12:49 -0400 (EDT)
Ken,
On Mon, 16 Oct 2000, Ken Nagorski wrote:
> I have a little perl problem, lets say I have a grep and it returns true.
> I want to not only print that line but I wanna print the line
> below. Anyone know how I noght do this?
See the '-A' option to grep (at least, GNU grep).
grep -A1 'pattern' file
will do what you wish.
Danny
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.