From d560d7ec4bf87a9f9dd2f7135489b26db5f9fb4b Mon Sep 17 00:00:00 2001 From: Lily Chung Date: Fri, 20 Sep 2019 01:38:57 -0700 Subject: Add the -0 option to null-terminate filenames. --- sor.1 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sor.1') diff --git a/sor.1 b/sor.1 index ab69baf..ff311ca 100644 --- a/sor.1 +++ b/sor.1 @@ -16,12 +16,22 @@ sor \- combine shell predicates with logical or .SH SYNOPSIS .B sor +.RI [\| OPTION ...\] .IR SNIPPET ... .SH DESCRIPTION Read paths from standard input. For each path, evaluate each argument as a .BR bash (1) snippet with the path as the first argument. Print the path to standard output if any of the snippets exits with status 0. +.SH OPTIONS +.TP +\fB-0, --null\fP +Filenames are terminated using the null character \fB\\0\fP instead of +newlines, for both input and output. +Suitable for use with \fBwalk -0\fP. +.TP +\fB--help\fP +Print a summary of the usage of \fBsor\fP and exit. .SH EXAMPLE .EX walk /etc | sor 'test -f' -- cgit v1.2.3