Mastodon Feed: Post

Mastodon Feed

Reblogged by jsonstein@masto.deoan.org ("Jeff Sonstein"):

piger ("Daniel") wrote:

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

#perl #cli #grep