how to use the grep command in terminal macos code example Example: grep on mac os terminal $ grep -r boo /etc/