The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Displaying specific lines in a file.
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
:
Displaying specific lines in a file.
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-05-2008
denn
Registered User
Join Date: Jul 2007
Posts: 93
To print the 3rd line of a file:
Code:
sed -n '3 p' < filename
denn
View Public Profile
Find all posts by denn