I'm playing around with the command line. For some reason when I try to grab lines 439 - 445 the output I am getting is lines 375 - 381 instead. I use the tail command to jump to line 439 then use the head command to print only the next six lines. Those aren't the six lines I get as shown in the screenshots below.
kali > tail -n+439 /etc/snort/snort.conf | head -n 6
Screenshots: grep grabbing wrong lines
What's the issue?
WinXP
Character String that appears on the Line #445 does not appear on the Line #381. You must have bumped onto a similar excerpt. – DOBRESCU_Mihai Dec 3 at 18:01grep
does not select a continuous excerpt of lines, while thetail
-head
combination does. – DOBRESCU_Mihai Dec 3 at 18:27