SyntaxFix
Write A Post
Hire A Developer
Questions
grep $PATTERN * would be sufficient. By default, grep would skip all subdirectories. However, if you want to grep through them, grep -r $PATTERN * is the case.
grep $PATTERN *
grep -r $PATTERN *