cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 60 Views

sed Tip #1

sed   '7q'  filename

In the above command, the 'q' is one of the sed commands.
This command instructs sed to stop processing input from
filename.  Thus, the above command will print the first 7 lines
in filename, and then quit.

 

Trevor "Red Hat Evangelist" Chandler
Labels (3)
1 Reply
Wasim_Raja
Moderator
Moderator
  • 12 Views

@Trevor Interesting one, thanks for sharing.

0 Kudos
Join the discussion
You must log in to join this conversation.