我如何在UNIX中的单个单词上使用grep?

0 unix bash shell

我想在unix中运行一个脚本,它将在传递的参数中查找特定的模式.在所有情况下,论证都是一个单词.我不能使用grep,因为grep只能用于搜索文件.有没有更好的unix命令可以帮助我?

atk*_*atk 5

Grep可以搜索文件,或者它可以在stdin上工作:

$ echo "this is a test" | grep is
this is a test