Reblogged by jsonstein@masto.deoan.org ("Jeff Sonstein"):
what I call “the perl grep" is one of the most useful tools I can think of, albeit a bit cumbersome to type:
$ echo "give me 12345 numbers" | perl -nl -e '/(\d+)/ && print "$1"'
12345
Reblogged by jsonstein@masto.deoan.org ("Jeff Sonstein"):
what I call “the perl grep" is one of the most useful tools I can think of, albeit a bit cumbersome to type:
$ echo "give me 12345 numbers" | perl -nl -e '/(\d+)/ && print "$1"'
12345