

Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2024
03:34 AM
- 404 Views
Any Command Equivalent
The following command will display lines
7 thru 18 of the file named "people".
$ sed -n '{7,18p}' people
Is there any other command (or commands)
that will accomplish the same? If so, how
about sharing the syntax with me.
Trevor "Red Hat Evangelist" Chandler
2 Replies


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2024
12:46 PM
- 375 Views
Hi,
awk ' NR >= 7 && NR <= 18 ' people
will do.
Regards,
Tshimanga


Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2024
02:39 PM
- 368 Views
I tried it, and it works!
I like it! I like it a lot!!!
Trevor "Red Hat Evangelist" Chandler
Join the discussion
You must log in to join this conversation.