Guest User

Untitled

a guest
Jan 2nd, 2021
176
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-3.2$ exec &> >(tee -a "testlog")
  2. bash-3.2$ echo "This will be logged to the file and to the screen"
  3. This will be logged to the file and to the screen
  4. bash-3.2$ uname
  5. Darwin
  6. bash-3.2$ nl testlog
  7. 1 bash-3.2$ echo "This will be logged to the file and to the screen"
  8. 2 This will be logged to the file and to the screen
  9. 3 bash-3.2$ uname
  10. 4 Darwin
  11. 5 bash-3.2$ nl testlog
  12. bash-3.2$ exit
RAW Paste Data