This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Parse the output of lnstat(8) into something perhaps slightly | |
# human-readable. | |
# | |
# Can take input from a file or on stdin. | |
import sys | |
lnstat_output = open(sys.argv[1]) if len(sys.argv) >= 2 else sys.stdin |