echo " " question

Mikkel L. Ellertson mikkel at infinity-ltd.com
Thu Jun 18 00:04:45 UTC 2009


chloe K wrote:
> Hi
>  
> 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
>  
> Thank you
> 
> 
First, please do not post to the list in HTML! See Guidelines:
http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


For your problem, you need to know about \, and how it effects what
you enter on the command line. Depending on exactly what you are
after, try:

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

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090617/ab127a54/attachment-0001.sig>


More information about the fedora-list mailing list