linux - bash prevent escaping with echo -


i relatively new linux , trying create tikz figure parsing file. in order read in file $%&-bash script containing following statement

echo "\fill[color=blue] ($xp,$zp) circle (5pt);" >> $fout 

this results in following output

^lill[color=blue] ($xp,$zp) circle (5pt); 

obviously echo escapes \f , did not find way around it. have tried options "-e" "-n" , have you, have tried kinds of combinations of " ' etc, no avail.

i stuck linux, time google didn't (omg=oh google!!!!!!!!).

echo should not backslash escapes default, unless -e specified. can try echo -e force turning them off (in case have aliased echo echo -e or something).

alternatively, try using single quotes (although think it, don't see how help):

echo '\fill[color=blue] ('"$xp,$zp"') circle (5pt);' >> $fout 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -