How to output thre result to a text file?

view full story

http://www.unix.com – Dear All I have a script file like the following: Code: ..... ..... Variable_1 = 888 Variable_2 = 999 ..... MyExternalProgram Myfile ..... The line Code: MyExternalProgram Myfile will generate some number, Say 777 Now I hope I can output the result of above codes to a text file, which would look like: Code: 888 999 777 How could I do that? (HowTos)