Hi: perl -e 'print "hello world!\n"' A simple filter: perl -ne 'print if /REGEX/' Filter out blank lines (in place):