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