git @ Cat's Eye Technologies The-Dipple / c434eb7
Add Python script to find and output all long lines in a file. Chris Pressey 6 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 import sys
1
2 for n, line in enumerate(sys.stdin):
3 l = line.rstrip()
4 if len(l) < 80:
5 continue
6 print("{}: |{}|".format(n, l))