Multiple matches in one line – perl one-liner

(thanks to Diego): perl -ne ‘while ((/condition/g)) { print “something”; }’

Leave a Reply