searching for specific strings

Jay plug-discuss@lists.plug.phoenix.az.us
Tue, 18 Feb 2003 21:29:16 -0700 (MST)


This should work:

    grep "substring=\"" access.log | grep -vx "substring=\" \""

~Jay




On Tue, 18 Feb 2003, Miles Beck wrote:

>
> Hello,
>
> I need to be able to do some searches from my access.log. The partial string
> in the log that shows us when a customer is searching for an item looks like
> this: substring=searchitem.
>
> When a search is not performed the string looks like this: substring=" ".
>
> How can I do a search and have the search not match substring=" ". I need it
> to only match when there is a value there instead of the " ".
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

-- 
~Jay