grep specific lines of file code example Example: grep specific line sed '3,10!d' your.file # capture line 3 to 10 #same number for single line