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

Re: echo " " question



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


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