#!/usr/bin/perl #! /usr/local/bin/perl # # Given: # * a program to run (1st arg) # * some "command-line opts" ( -O -O ... ) # [default: anything on the cmd line this script doesn't recognise ] # the first opt not starting w/ "-" is taken to be an input # file and (if it exists) is grepped for "what's going on here" # comments (^--!!!). # * a file to feed to stdin ( -i ) [default: $dev_null ] # * a "time" command to use (-t ). # * a "start" line (-s ) - all preceeding lines of output # * are ignored (from stdout). # * a "start" pattern (-f ) - all preceeding lines of output # * are deleted (from stdout). # * an "end" pattern (-l ) - all later lines of output # * are deleted (from stdout). # # * alternatively, a "-script