From 5d3a0e8ed3c7fcb43c9298d43868672ae51a4456 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 4 Oct 2005 03:34:39 +0000 Subject: Add find -exec support from Rob Sullivan, and convert CONFIG_ to ENABLE_ while we're in the area. --- include/usage.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/usage.h') 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" -- cgit v1.2.3