: # this file will output to a file. If the file does not # exist, the file will be created using ">". If the file # does exist, the file will be appended using ">>". if [ -f outfile ] then # file exists date >> outfile else # file does not exist date > outfile fi # display the file more outfile