#!/bin/sh # # The challenge is to come up with a way to use the Bourne shell and # /usr/bin/tee to redirect standard out to out.log *and* the terminal # while also redirecting standard error to err.log *and* the terminal. # # Standard out cannot be sent to err.log and standard error cannot be # sent to out.log. # # You must invoke /usr/bin/tee twice. Once for standard out and once # for standard error. You may not use any other program or script to # help. You must work within one command line use of the Bourne shell. echo This is standard output echo This is standard error >&2