[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: echo " " question



Nifty Fedora Mitch wrote:
On Wed, Jun 24, 2009 at 09:23:24AM +0200, Kevin Kofler wrote:
chloe K wrote:
how can I use echo quote? I try it and it doesn't work

eg:

echo  " "$q" " >> a.txt

it can't have " " in the a.txt
http://www.faqs.org/docs/abs/HTML/quoting.html

        Kevin Kofler

Good link worth a bookmark!

Is the original poster looking for this type of solution:
$ S="Tango"
$ echo -e "\040$S\040"
Tango

Hi,

by using ' (apostroph), you can quote a " (double apostroph) too:
you can say: echo ' " '"$q" >>a.txt

--

Joachim Backes <joachim backes rhrk uni-kl de>

http://www.rhrk.uni-kl.de/~backes

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]