Thursday, October 17, 2024

Re: clever grep..

Thank you both, Mike and Steve, also due to the late time
I thought to the most complicated stuff.

-Dan

Steve Williams <steve@williamsitconsulting.com>:

> Mike Fischer wrote:
>
>> grep "return 301 $host$request_uri" *.conf
>
> Hi,
>
> I think you missed the point.
>
> grep "return 301 $host$request_uri" *.conf
>
> $host evaluates to the empty string
> $request_uri evaluates to the empty string

No comments:

Post a Comment