Question : bash grep find lines that start with word
Answered by : charlesalexandre-roy
# Basic syntax:
grep '^your_word' input_file
Source : https://www.unix.com/unix-for-dummies-questions-and-answers/231717-grep-only-line-starting.html | Last Update : Wed, 09 Feb 22
Question : grep specific line
Answered by : niransha
sed '3,10!d' your.file # capture line 3 to 10
#same number for single line
Source : https://stackoverflow.com/questions/2914197/how-to-grep-out-specific-line-ranges-of-a-file | Last Update : Tue, 26 Jan 21