how to get a particular line from logs using grep code example
Example 1: grep specific line
sed '3,10!d' your.file # capture line 3 to 10
#same number for single line
Example 2: put grep output in a file
grep -n "YOUR SEARCH STRING" * > output-file