From dc470bcad3905a19ce8e72ddf2c6c063ad99e450 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 23 May 2016 11:29:06 +0200 Subject: Document noclobber redirections Fixes #2812. --- doc_src/index.hdr.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc_src') diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index ff014136..9eb620a7 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -146,6 +146,8 @@ An example of a file redirection is `echo hello > output.txt`, which directs the - To append standard output to a file, write `>>DESTINATION_FILE` - To append standard error to a file, write `^^DESTINATION_FILE` +- To not overwrite ("clobber") an existing file, write '>?DESTINATION' or '^?DESTINATION' + `DESTINATION` can be one of the following: - A filename. The output will be written to the specified file. -- cgit v1.2.3