linux 如何顯示一個文件的某幾行(中間幾行)

【一】從第3000行開始,顯示1000行。即顯示3000~3999行post cat filename | tail -n +3000 | head -n 1000blog   【二】顯示1000行到3000行test cat filename| head -n 3000 | tail -n +1000 sed   *注意兩種方法的順序file   分解:grep     tail -n 1000
相關文章
相關標籤/搜索