How to find two line through grep?
Vipin Sharma - EDS Datacenter Contractor
Vipin.Sharma at Sun.COM
Mon Oct 22 09:32:09 EDT 2001
Hi Guys,
I have to grep for a word and it should show the next line also on the result.
Like if I say
#cat format.out|grep SUN4
then it should show me
0. c0t10d0 <SUN4.2G cyl 3880 alt 2 hd 16 sec 135>
/sbus at 3,0/SUNW,fas at 3,8800000/sd at a,0
I would like to have in command if it can be done with awk,nawk or grep.I dont
want execute a script to do it.
Any help would be appreciated.
Thanx
VS
More information about the sunmanagers
mailing list