LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Newline in xmessage? (https://www.linuxquestions.org/questions/linux-general-1/newline-in-xmessage-331854/)

scottjwoodford 06-09-2005 08:58 AM

Newline in xmessage?
 
Hello all,

Trying to figure out how to insert a newline character in an xmessage window. I realize there's no built-in way to do it, but does anyone have any ideas? I can get it to work if I use "-file" and specify a file that has wrapped text, but I can't use that because I need to pass variables from the command line. Thanks in advance,

Scott

keefaz 06-09-2005 10:59 AM

Try :
Code:

echo -e "Hello,\nThis is\na multiple lines\nmessage" | xmessage -file -

scottjwoodford 06-09-2005 03:17 PM

Thanks Keefaz. That works great!


All times are GMT -5. The time now is 06:27 PM.