[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.
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.