Article 5RAS2 [SOLVED] How can I store multiple lines into a temporary file?

[SOLVED] How can I store multiple lines into a temporary file?

by
Varister
from LinuxQuestions.org on (#5RAS2)
I am trying to store ASCII art into a temporary file using > $temp in BASH for my dialog menu, but when I put it at the end of my art, only the line containing > $temp is displayed and the rest of my art is missing. I have tried various ways including putting > $temp at the end of each line, putting > $temp at the beginning and end of the art, but nothing works.

I have used echo on each line of my ASCII art.

For example, if I did:

echo 'a'
echo 'b'
echo 'c' > $temp

only the c would appear in my dialog menu and the rest of the text is missing.latest?d=yIl2AUoC8zA latest?i=4I3A6qsDyoo:yWmxDPBIxQk:F7zBnMy latest?i=4I3A6qsDyoo:yWmxDPBIxQk:V_sGLiP latest?d=qj6IDK7rITs latest?i=4I3A6qsDyoo:yWmxDPBIxQk:gIN9vFw4I3A6qsDyoo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments