If you prefer to have the command arguments at the end of the line (so it's easier to amend), you can do e.g:
< file.txt grep pattern
grep pattern file.txt
cat file.txt | grep pattern
grep pattern file | awk '{print $3}'
awk '/pattern/ {print $3}' file