diff options
author | Lily Chung <lkdc@mit.edu> | 2019-09-20 01:38:57 -0700 |
---|---|---|
committer | Lily Chung <lkdc@mit.edu> | 2019-09-20 01:48:41 -0700 |
commit | d560d7ec4bf87a9f9dd2f7135489b26db5f9fb4b (patch) | |
tree | f9c9b3fdceb21c017fd39fb3858f9999007ed70d /sor.1 | |
parent | f80b980d4a8893836ba5bc108ecf9068676f4f6a (diff) |
Add the -0 option to null-terminate filenames.
Diffstat (limited to 'sor.1')
-rw-r--r-- | sor.1 | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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' |