index
:
xutil
master
extra UNIX utilities
Git
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
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