You Imagine We Build!!
Focusing problem solving with bird's-eye view & ground level implementation.
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment