Operating System - HP-UX
1752790 Members
6154 Online
108789 Solutions
New Discussion юеВ

Re: Writing Variables to a File

 
Patrick Wallek
Honored Contributor

Re: Writing Variables to a File

Yes,

echo "$var1 $var2" > filename

should work fine. Maybe try it without the quotes around the variable and see what happens?
Scott Frye_1
Super Advisor

Re: Writing Variables to a File

I believe I have it from here. I have one more conditional if to debug and it should work fine.

Thanks to all who helped. Working from home is great, if you have the tools

Happy Holiday's to all!!
Scott Frye_1
Super Advisor

Re: Writing Variables to a File

I was evaluating the wrong variable in my if statement.