Re: echo " " question

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

 



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!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux