Skip to content

Instantly share code, notes, and snippets.

View Benhgift's full-sized avatar

Ben Gift Benhgift

View GitHub Profile
@Benhgift
Benhgift / open_ag_files.py
Created June 14, 2019 19:30
agg <pattern> will open the files it finds
#!/usr/bin/env python3
from subprocess import getoutput
import os
import re
import fire
def main(*ag_args):
ag_args = ' '.join(ag_args)
print_matches(ag_args)