fire-grep-0.5.10 - Executes a regular expression against a set of local files, optionally returning results as XML. Usage: fire-grep [OPTION]... [FILE]... Mandatory arguments to long options are mandatory for short options too. Startup: -v, --version display the version of this program and exit. --help print this help and exit. Grep options: -q, --query=STRING|@FILE use STRING or FILE as regular expression query. --ignorecase=TRUE|FALSE Ignore case distinctions (default=FALSE). --linenumbering=TRUE|FALSE Prefix with line numbers (default=FALSE). -w, --wrap=TRUE|FALSE wrap groups into XML elements (default=TRUE). --groupnames=STRING:STRING:STRING ... set XML names of groups. Logging: -l, --loglevel=all|trace|debug|info|warn|error|fatal|off (default='info'). Examples: fire-grep --query='.*firefish.*' samples/grep/httpd_access_log.txt fire-grep --query='(.+?) (- -) \[(.+?)\] .(.+?) (.*?firefish.*?) (.+?). (.+?) (.*)' --groupnames=all:host:dummy:time:cmd:url:protocol:statusCode:fileSize samples/grep/httpd_access_log.txt fire-grep --query=@myregexfile.txt --wrap=false --linenumbering=true --loglevel=error samples/grep/*.txt fire-grep --query='(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*)' --groupnames=all:name:password:uid:gid:class:homedir:shell /etc/passwd fire-grep --query='(.*?) (.*?) (.*?) (.*?)/(.*?) (.*)' --groupnames=all:one:five:fifteen:numRunningProcesses:numTotalProcesses:highestPID /proc/loadavg fire-grep --query='(.*?)\s*: (.*)' --groupnames=all:name:value /proc/cpuinfo df | fire-grep --query='(\S*) *(\S*) *(\S*) *(\S*) *(\S*)% *(\S*)' --groupnames=all:filesystem:blocks:used:available:capacity:mountedOn - Regular Expression Tutorial: See http://java.sun.com/docs/books/tutorial/extra/regex/index.html Mail bug reports and suggestions to http://dsd.lbl.gov/firefish.