Use grep to report back only line numbers December 15, 2022 by Tarik try: grep -n "text to find" file.ext | cut -f1 -d: