Wednesday, July 10, 2019

Extract range of lines from file in linux;

Below gets last n lines from log
  • tail -3610000 nohup.out|less > file2.txt&



Below gets range of lines 
  • awk 'NR>=111000 && NR<=151000' file2.txt > file3.txt&


No comments: