Line number script for easy adding linenumbers

This commit is contained in:
madmaurice 2016-03-22 16:25:40 +01:00
parent d3f5000dad
commit 7dd3b3b0a0

10
linenumbers.py Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env python
i = 1
while True:
try:
line = input("")
except EOFError:
break
print("%3d. %s" %(i,line))
i+=1