linux show specified number of rows of data text file

sed -n '2,4p' /core/home_info.txt line 2-4 show this txt, in addition

 

cat /core/home_info.txt | tail -n 1000: Displays the last 1000 lines

              | Tail -n +1000: From the 1000 start line display, the display line after 1000

              | Head -n 1000: 1000 is displayed in front of the line

 

Wording,

But how to display the specified content, but also I hope that enlighten

Guess you like

Origin www.cnblogs.com/llcdbk/p/10994275.html