diff options
author | Rob Landley <rob@landley.net> | 2005-10-04 03:34:39 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-10-04 03:34:39 +0000 |
commit | 5d3a0e8ed3c7fcb43c9298d43868672ae51a4456 (patch) | |
tree | f60cc3927c07020236912ae6cfa9f864a29f6f75 /include/usage.h | |
parent | d128b7182082052626555331ca46b92e478a0cc5 (diff) |
Add find -exec support from Rob Sullivan, and convert CONFIG_ to ENABLE_
while we're in the area.
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h index 0dbc82a2c..8428bfd32 100644 --- a/include/usage.h +++ b/include/usage.h @@ -732,6 +732,11 @@ #else # define USAGE_FIND_INUM(a) #endif +#ifdef CONFIG_FEATURE_FIND_EXEC +# define USAGE_FIND_EXEC(a) a +#else +# define USAGE_FIND_EXEC(a) +#endif #define find_trivial_usage \ "[PATH...] [EXPRESSION]" @@ -751,7 +756,11 @@ ) USAGE_FIND_NEWER( \ "\n\t-newer FILE\tModified time is more recent than FILE's" \ ) USAGE_FIND_INUM( \ - "\n\t-inum N\t\tFile has inode number N") + "\n\t-inum N\t\tFile has inode number N" \ +) USAGE_FIND_EXEC( \ + "\n\t-exec CMD\tExecute CMD with all instances of {} replaced by the" \ + "\n\t\t\tfiles matching EXPRESSION") + #define find_example_usage \ "$ find / -name passwd\n" \ "/etc/passwd\n" |