aboutsummaryrefslogtreecommitdiff
path: root/sor.1
diff options
context:
space:
mode:
authorGravatar Lily Chung <lkdc@mit.edu>2019-09-20 01:38:57 -0700
committerGravatar Lily Chung <lkdc@mit.edu>2019-09-20 01:48:41 -0700
commitd560d7ec4bf87a9f9dd2f7135489b26db5f9fb4b (patch)
treef9c9b3fdceb21c017fd39fb3858f9999007ed70d /sor.1
parentf80b980d4a8893836ba5bc108ecf9068676f4f6a (diff)
Add the -0 option to null-terminate filenames.
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'