Instead of putting >> at the end of each command such as:
date >> newfile
ls >> newfile
# etc.
How would I take the entire output of a script and put it into a file without the need for multiple appends, such as in the following code?
date
ls
echo $USER
# ">> new file"