git @ Cat's Eye Technologies Dipple / master python / longlines.py
master

Tree @master (Download .tar.gz)

longlines.py @masterraw · history · blame

# SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
# For more information, please refer to <https://unlicense.org/>
# SPDX-License-Identifier: Unlicense

import sys

for n, line in enumerate(sys.stdin):
    l = line.rstrip()
    if len(l) < 80:
        continue
    print("{}: |{}|".format(n, l))