The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
how can i extract text section via grep
.
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
:
how can i extract text section via grep
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
07-02-2009
scottn
VIP Member
Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,109
Hi.
Grep is for searching for specific things. If you only want specific lines, not based on the contents you could, amongst other things, use head and tail..
Code:
head -100 file | tail -50
scottn
View Public Profile
Find all posts by scottn
Find scottn's past nominations received
Find scottn's present nominations given