Run a regular [e]xpression on stdin, printing matching [l]ines

perl

cat {{path/to/file}} | perl -n -l -e 'print if /{{regular_expression}}/'

click the source code to copy install perl on any operating system with command-not-found.com