The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
viewing specific lines
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
viewing specific lines
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-24-2006
vino
Supporter (in vino veritas)
Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,658
One possible solution is using sed.
If 10 is the line number.
Code:
sed -n "10q;9p" input.txt
vino
View Public Profile
Find all posts by vino