tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ pchang@cybersource.com

Help on a grep command ▻

' problem

In article <yeck8o88gef.fsf@king.cts.com>, Keith Thompson  <kst@cts.com> wrote:
>> date | awk '{print $3 "\'"}'

>           For example, in tcsh with the variable $backslash_quote
>set, the above command prints

"You came in *that*!?  You're braver than I thought."

>date | awk '{ print $3 "'"'"'" }'

In rc:

    date |awk '{ print $3 "''" }'

Tim.
--
Tim Goodwin   | "People think [ W. Gibson is ] hi-tech because his prose
Leicester, UK | is as pleasant to read as a C++ program." -- JT

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: ' problem
Date: 29 Oct 1999 10:38:42 +0100
Organization: University of Leicester, UK
Message-ID: <7vbpvo$a9f$1@ltpcg.star.le.ac.uk>
References: <3816C6D0.E76E518A@psi.ch> <yeck8o88gef.fsf@king.cts.com>

△ comp.unix.shell △

◅ pchang@cybersource.com

Help on a grep command ▻