hits -  grep backwards. return ONLY the found strings, not whole lines


hits is an awk script to side-step scan/grep's annoying insistance on 
always outputting the entire line a match is found on. hits outputs just 
the matches. 

EXAMPLE

hits "\040....\040"  filename

This one prints all the 4-letter space-delimited strings ( \040 is the only
way I can pass a space into it, that's ASCII octal for a space) in the file
"filename". Actually that example lets some < 4 letter strings through.
Less obscure regexes should have better behavior. Thing is, hits is a simple
script, using awk's BASIC-like string manipulators. Tweak it for your needs.

RIGHTS

   Copyright 2000 Rick Hohensee
   This file is released for redistribution only as part of an intact entire
   cLIeNUX Core.