Monday, October 14, 2024

Re: clever grep..

Thanks, received. Indeed adding just a single a space after the "return
301" get to the same result.

-Dan


Mike Fischer <fischer+obsd@lavielle.com> wrote:

>
> > Am 14.10.2024 um 04:35 schrieb Dan <dan@nnnne-o-o-o.com>:
> >
> > grep "return 301 $host$request_uri" *.conf
>
> The shell will interpret any $… sequences in double quotes as
> variables. Use single quotes or try to escape the $ characters.
>
>
> HTH
> Mike
>

No comments:

Post a Comment