Skip to content

Instantly share code, notes, and snippets.

View tbc's full-sized avatar

Tim "Sparky" Chambers tbc

View GitHub Profile
@dgulino
dgulino / pyliner.py
Last active October 19, 2026 15:01
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 python
import sys
import getopt
from getopt import GetoptError
import os
"""
Python script that runs one-liner python scripts similarly to how Perl runs them