aboutsummaryrefslogtreecommitdiff
path: root/sor.1
diff options
context:
space:
mode:
Diffstat (limited to 'sor.1')
-rw-r--r--sor.110
1 files changed, 10 insertions, 0 deletions
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'