[Info-vax] Suggestion: Enhance DCL to support proper escape quoting.

Bob Eager news0009 at eager.cx
Thu Jan 20 06:05:16 EST 2022


On Thu, 20 Jan 2022 11:59:59 +0100, hb wrote:

>  From bash, if you really want to use double quotes as a string
> delimiter, you need to escape the bash special characters, as they are
> interpreted in that string.
> 
> $ grep "\\\\\"" morehellos.tex Hello w\"orld!
> $
> $ grep "\\\\\\\\" morehellos.tex Hello\\world!
> $
> grep "\"" morehellos.tex Hello w\"orld!
> "Hello world!"

Or just use single quotes to surrouhd the search string. bash won't touch 
anything inside those.

 $ grep '"' whateverfile

-- 
My posts are my copyright and if @diy_forums or Home Owners' Hub 
wish to copy them they can pay me £1 a message.
Use the BIG mirror service in the UK: http://www.mirrorservice.org
*lightning surge protection* - a w_tom conductor



More information about the Info-vax mailing list