#!/usr/bin/env pluvo % grep.pvo - Search Files for Pattern Author: Sean B. Palmer, inamidst.com usage "grep.pvo [options] pattern filenames+" -h/--help "Display a help message" -t/--test "Perform builtin code tests" grep = (filenames pattern) %% Grep through filenames for pattern example grep ("tag:pluvo.org,2006:words") "ria" => "20. Thesmophoriazousae" for line {@lines filenames} /$pattern/ line { out line } main = (argv) --help or {not args} { help } --test { check grep; quit } grep {args.filenames} {args.pattern} script main