how to get the line the grep was used in code example Example: grep all files recursively grep -r "texthere" .