searching for specific strings

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jay
Date:  
Subject: searching for specific strings

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 -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


--
~Jay