summaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-10-04 03:34:39 +0000
committerRob Landley <rob@landley.net>2005-10-04 03:34:39 +0000
commit5d3a0e8ed3c7fcb43c9298d43868672ae51a4456 (patch)
treef60cc3927c07020236912ae6cfa9f864a29f6f75 /include/usage.h
parentd128b7182082052626555331ca46b92e478a0cc5 (diff)
downloadbusybox-w32-5d3a0e8ed3c7fcb43c9298d43868672ae51a4456.tar.gz
busybox-w32-5d3a0e8ed3c7fcb43c9298d43868672ae51a4456.tar.bz2
busybox-w32-5d3a0e8ed3c7fcb43c9298d43868672ae51a4456.zip
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.h11
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 @@
732#else 732#else
733# define USAGE_FIND_INUM(a) 733# define USAGE_FIND_INUM(a)
734#endif 734#endif
735#ifdef CONFIG_FEATURE_FIND_EXEC
736# define USAGE_FIND_EXEC(a) a
737#else
738# define USAGE_FIND_EXEC(a)
739#endif
735 740
736#define find_trivial_usage \ 741#define find_trivial_usage \
737 "[PATH...] [EXPRESSION]" 742 "[PATH...] [EXPRESSION]"
@@ -751,7 +756,11 @@
751) USAGE_FIND_NEWER( \ 756) USAGE_FIND_NEWER( \
752 "\n\t-newer FILE\tModified time is more recent than FILE's" \ 757 "\n\t-newer FILE\tModified time is more recent than FILE's" \
753) USAGE_FIND_INUM( \ 758) USAGE_FIND_INUM( \
754 "\n\t-inum N\t\tFile has inode number N") 759 "\n\t-inum N\t\tFile has inode number N" \
760) USAGE_FIND_EXEC( \
761 "\n\t-exec CMD\tExecute CMD with all instances of {} replaced by the" \
762 "\n\t\t\tfiles matching EXPRESSION")
763
755#define find_example_usage \ 764#define find_example_usage \
756 "$ find / -name passwd\n" \ 765 "$ find / -name passwd\n" \
757 "/etc/passwd\n" 766 "/etc/passwd\n"