Find, replace, and increment at each occurence of string by jon207 October 7, 2014 perl -ple ‘s/num/$n++/e’ filename Tags:findincrementoccurenceperlregexreplace