tee

Redirect output to multiple files. Copies standard input to standard output, making a copy in zero or more files. The output is unbuffered.

Syntax
      tee [-ai] [file ...]

Options
   -a      Append the output to the files rather than overwriting them.

   -i      Ignore the SIGINT signal.

   file    A pathname of an output file.

The tee utility takes the default action for all signals, except in the event of the -i option.

Exits 0 on success, and >0 if an error occurs.

“Nurture your thoughts with great thoughts, to believe in the heroic, makes heroes” ~ Disraeli

Related macOS commands

cat - Display the contents of a file.


 
Copyright © 1999-2024 SS64.com
Some rights reserved