Search the entire file system for files with the extension ".txt" and search for the string "$1" in each of those files, displaying the line number and filename of each match.
find / -name "*.txt" | xargs grep -rnw "$1"