MacOS – Append stdout to file from terminal


I know using command > file will write the stdout of command to file, but is there a similar method to append to file?

Best Answer

  • command > file will clobber the file and replace all data with stdout.

    command >> file will append stdout to the file. (meaning the value of stdout is tacked to the end of the file).

  • Related Question