aboutsummaryrefslogtreecommitdiff
path: root/etc/inc
blob: 51345a5fc53dd3b6121b059fe2cb16ba87b43ed6 (plain)
1
2
3
#!/usr/bin/perl -p
# inc -- increment numbers in lines
s/\d+/$n=$& if!$n;$n+$i++/e