DEV Community

Discussion on: Stupid Short: Bash's |, >, >>, <, 2>>, 2> Operators

Collapse
 
moopet profile image
Ben Sinclair

Another one people don't seem to use much is >| which will overwrite a file even if noclobber is on.

Collapse
 
hinchk profile image
Kasey

Makes truncating a breeze! |> logfile.log