Ah, everyone's in on the fun: my take follows. Select the lines and use Text => Filter through command... (replace input) perl -pe '$i++;s/(\w+)/$1$i/g' Not too bad! Cheers, Paul