Re: Escaping grep

bodiccea <[email protected]>
Newsgroups alt.comp.lang.shell.unix.bourne-bash
Organization Guest of ProXad - France
Message-ID <20210417192127.062f589f@lorien>
On Sat, 17 Apr 2021 11:08:36 -0500, "Michael F. Stemper"
<[email protected]> wrote:
> > # with quotes
> > br@lorien:~/.claws-mail$ printf "%s\n" "^\\\\usep"
> > ^\\usep                          <-- passed to grep, correct
> > 
> > # with double quotes
> > br@lorien:~/.claws-mail$ printf "%s\n" '^\\usep'
> > ^\\usep                          <-- passed to grep, correct  
> 
> That's a really good idea. Thanks for the pro-tip. (But I think
> that your last comment has a typo.)

indeed, the 2 comments are messed up :*)

-- 
Dragons Don't Believe In You Either.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.