Sample Header Ad - 728x90

"tail" Is Returning the Wrong Requested Number Lines

0 votes
1 answer
875 views
I'm trying to use the following approach to subset the output of a manual: man dig | nl | tail -n +389 | head -n 6 However, the output starts at line 304, not line 389. Doing some research, it seems lines marked as "#####################" are not counted. This is very aggravating, and one of my current books was using this approach to subset number lines. Is there any solution to fix the overlooked lines?
Asked by George Thompson (3 rep)
Jun 6, 2019, 08:49 AM
Last activity: Jun 6, 2019, 08:52 AM