#!/usr/bin/env ruby # Start Date: Saturday January 26, 2008 # Most Recent Update: Thursday March 6, 2008 # Current Version: 1.0 # Author: Joseph Pecoraro # Contact: joepeck02@gmail.com # Decription: Default behavior is a multiple regular expressions grep # utility. Multiple regular expressions are provided and the desire # of the regular expression matching or not matching each line of # text. If everything succeeds the filename, line number, and line # of text is printed. # Load require 'find' # Global States $all_mode = false $search_hidden = false $regex_list = [] $regex_neg = [] # Usage Message to print $program_name = $0.split(/\//).last usage = <