The UNIX and Linux Forums
>
Operating Systems
>
Linux
Command that prints content of line5, or similar?
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Command that prints content of line5, or similar?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
07-06-2007
Shell_Life
Registered User
Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
One way to display a specific line number in a file:
Code:
sed
-n 'Xp' input_file
Where "X" is a line number in the "input_file".
Shell_Life
View Public Profile
Find all posts by Shell_Life