SyntaxFix
Write A Post
Hire A Developer
Questions
You're going to want the second field after the colon, not the first.
grep -n "text to find" file.txt | cut -f2 -d: