Skip to content

Instantly share code, notes, and snippets.

View tbc's full-sized avatar

Tim "Sparky" Chambers tbc

View GitHub Profile
@tbc
tbc / pyliner.py
Last active October 19, 2026 15:03 — forked from dgulino/pyliner.py
Python script that runs one-liner python scripts similarly to how Perl runs themportions based on http://code.activestate.com/recipes/437932-pyline-a-grep-like-sed-like-command-line-tool/(Graham Fawcett, Jacob Oscarson, Mark Eichin)interface inspired by Perl
#!/usr/bin/env python3
#-*-Python-*-
"""pyliner: run one-liner Python scripts over input, similar to Perl's -lane.
Modified October 2026 by Tim Chambers (with Claude Sonnet 5.5).
Consolidated from Drew’s gist (https://gist.github.com/dgulino/4750088) and
Sparky’s 2014 fork (literal colon and semicolon, -h, re import).
**Summary**