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 -->
#
4
(
permalink
)
07-06-2007
Shell_Life
Registered User
Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
You are right, Reborg -- the quit is an important optmization:
Code:
sed
'X{p;q;}' input_file
Shell_Life
View Public Profile
Find all posts by Shell_Life