Score:1

Print double quotes in file | Imprimir comillas dobles

be flag

I would like to print this to a file

echo "hello world "today"" > /tmp/file.log

have as a result on /tmp/file.log

hello world "today"
muru avatar
us flag
Please don't add "solved" to the title. If the answer worked for you, accept it, or else please post your own answer instead of editing the question.
Score:2
ph flag

You can do this in many ways

[~]$echo "hello world \"today\"" > /tmp/file.log
%
[~]$cat /tmp/file.log
hello world "today"
%
[~]$

[~]$echo 'hello world "today"' > /tmp/file.log

%
[~]$cat /tmp/file.log
hello world "today"
%
BurstBass BurstBass avatar
be flag
I had exactly that answer, I wanted to send today as a variable var="today" echo "hello world \"$var\" " > /tmp/file.log Thank you very much for your reply
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.