i’d like perl to do a one-liner like grep
a bit like this, but i’m not sure what to add to make it work
$ (echo a ; echo b ; echo c) | perl -e 'a'
ADDED
My answer here covers that and more
https://superuser.com/questions/416419/perl-for-matching-with-regex-in-terminal
1 Answer