generate logfile in a shell script

Unix Gurus,

I have a shell script which has few "echo" statements. I am trying to create a logfile where all the outputs of the echo statement sare stored.

I will have to add this as the final step in the existing script so that everytime the script runs, a logfile is generated with all the echo statement.

Thanks
Shankar

You can be specific for every "echo" statement:

echo "bla-bla-bla" > logfile

Or you can run your shell script as:

yourscript > logfile