The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
retrieve lines using sed, grep or awk
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
retrieve lines using sed, grep or awk
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
03-25-2009
Whiteboard
Registered User
Join Date: Feb 2009
Location: @........
Posts: 111
Code:
$ grep -B 2 -A 2 "Third line2" filename BEGIN Second line Third line2 Fourth line END
Whiteboard
View Public Profile
Find all posts by Whiteboard
Find Whiteboard's past nominations received
Find Whiteboard's present nominations given