$ echo -e "a\n.b\nc" a .b c $ echo -e "a\n.b\nc" | perl -ne 'print if $_ !~ m/^\./' a c