]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(du invocation): Describe new option: -0, --null.
authorJim Meyering <jim@meyering.net>
Sat, 20 Dec 2003 11:28:14 +0000 (11:28 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Dec 2003 11:28:14 +0000 (11:28 +0000)
doc/coreutils.texi

index d60b62d060d859bf4ac5246145338b50059b1df7..5c14e6cdc35a0cba4b7f7f49e0f4a2e262a8dafb 100644 (file)
@@ -8447,6 +8447,15 @@ Show the total for each directory (and file if --all) that is at
 most MAX_DEPTH levels down from the root of the hierarchy.  The root
 is at level 0, so @code{du --max-depth=0} is equivalent to @code{du -s}.
 
+@item -0
+@opindex -0
+@itemx --null
+@opindex --null
+@cindex output NUL-terminated lines
+Output the zero byte (@kbd{NUL}) at the end of each line, rather than a newline.
+This option enables other programs to parse the output of @command{du}
+even when that output would contain file names with embedded newlines.
+
 @item -s
 @itemx --summarize
 @opindex -s