blob: f274ad1c60a01412c0ef6dc965213930f5d1621d [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Finding Utilities"
7
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00008config FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +00009 bool "find"
10 default n
11 help
Eric Andersen65e20a32003-07-05 07:52:35 +000012 find is used to search your system to find specified files.
Eric Andersenc9f20d92002-12-05 08:41:41 +000013
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000014config FEATURE_FIND_PRINT0
Denys Vlasenko2207cd62009-06-18 19:59:51 +020015 bool "Enable -print0: NUL-terminated output"
Paul Foxd7384292006-05-12 14:47:20 +000016 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000017 depends on FIND
Paul Foxd7384292006-05-12 14:47:20 +000018 help
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020019 Causes output names to be separated by a NUL character
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000020 rather than a newline. This allows names that contain
Paul Foxd7384292006-05-12 14:47:20 +000021 newlines and other whitespace to be more easily
22 interpreted by other programs.
23
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000024config FEATURE_FIND_MTIME
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020025 bool "Enable -mtime: modified time matching"
Eric Andersenc9f20d92002-12-05 08:41:41 +000026 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000027 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000028 help
Eric Andersenfb0c6af2003-07-14 19:18:43 +000029 Allow searching based on the modification time of
Paul Fox72d1a232006-01-13 21:05:41 +000030 files, in days.
31
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000032config FEATURE_FIND_MMIN
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020033 bool "Enable -mmin: modified time matching by minutes"
Paul Fox72d1a232006-01-13 21:05:41 +000034 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000035 depends on FIND
Paul Fox72d1a232006-01-13 21:05:41 +000036 help
37 Allow searching based on the modification time of
38 files, in minutes.
Eric Andersenc9f20d92002-12-05 08:41:41 +000039
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000040config FEATURE_FIND_PERM
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020041 bool "Enable -perm: permissions matching"
Eric Andersenc9f20d92002-12-05 08:41:41 +000042 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000043 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000044 help
Eric Andersenfb0c6af2003-07-14 19:18:43 +000045 Enable searching based on file permissions.
Eric Andersenc9f20d92002-12-05 08:41:41 +000046
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000047config FEATURE_FIND_TYPE
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020048 bool "Enable -type: file type matching (file/dir/link/...)"
Eric Andersenc9f20d92002-12-05 08:41:41 +000049 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000050 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000051 help
Eric Andersenfb0c6af2003-07-14 19:18:43 +000052 Enable searching based on file type (file,
53 directory, socket, device, etc.).
Eric Andersenc9f20d92002-12-05 08:41:41 +000054
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000055config FEATURE_FIND_XDEV
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020056 bool "Enable -xdev: 'stay in filesystem'"
Eric Andersenc9f20d92002-12-05 08:41:41 +000057 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000058 depends on FIND
Eric Andersenc9f20d92002-12-05 08:41:41 +000059 help
Denis Vlasenkob9411292007-06-15 23:43:11 +000060 This option allows find to restrict searches to a single filesystem.
61
62config FEATURE_FIND_MAXDEPTH
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020063 bool "Enable -maxdepth N"
Denis Vlasenkob9411292007-06-15 23:43:11 +000064 default y
65 depends on FIND
66 help
67 This option enables -maxdepth N option.
Eric Andersenc9f20d92002-12-05 08:41:41 +000068
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000069config FEATURE_FIND_NEWER
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020070 bool "Enable -newer: compare file modification times"
Eric Andersen97d86f22003-01-23 05:27:42 +000071 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000072 depends on FIND
Eric Andersen97d86f22003-01-23 05:27:42 +000073 help
74 Support the 'find -newer' option for finding any files which have
75 a modified time that is more recent than the specified FILE.
76
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000077config FEATURE_FIND_INUM
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020078 bool "Enable -inum: inode number matching"
Eric Andersen97d86f22003-01-23 05:27:42 +000079 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000080 depends on FIND
Eric Andersen97d86f22003-01-23 05:27:42 +000081 help
Eric Andersen88c916b2003-10-22 09:58:56 +000082 Support the 'find -inum' option for searching by inode number.
Eric Andersen97d86f22003-01-23 05:27:42 +000083
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000084config FEATURE_FIND_EXEC
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020085 bool "Enable -exec: execute commands"
Rob Landley5d3a0e82005-10-04 03:34:39 +000086 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000087 depends on FIND
Rob Landley5d3a0e82005-10-04 03:34:39 +000088 help
89 Support the 'find -exec' option for executing commands based upon
90 the files matched.
91
Denis Vlasenkoa1007072007-02-02 01:17:52 +000092config FEATURE_FIND_USER
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +020093 bool "Enable -user: username/uid matching"
Denis Vlasenkoa1007072007-02-02 01:17:52 +000094 default y
95 depends on FIND
96 help
97 Support the 'find -user' option for searching by username or uid.
98
Denis Vlasenko56fce002007-04-04 23:41:35 +000099config FEATURE_FIND_GROUP
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200100 bool "Enable -group: group/gid matching"
Denis Vlasenko56fce002007-04-04 23:41:35 +0000101 default y
102 depends on FIND
103 help
104 Support the 'find -group' option for searching by group name or gid.
105
Denis Vlasenkocf787cf2007-02-04 17:11:25 +0000106config FEATURE_FIND_NOT
107 bool "Enable the 'not' (!) operator"
108 default y
109 depends on FIND
110 help
Denis Vlasenko56fce002007-04-04 23:41:35 +0000111 Support the '!' operator to invert the test results.
112 If 'Enable full-blown desktop' is enabled, then will also support
113 the non-POSIX notation '-not'.
114
115config FEATURE_FIND_DEPTH
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200116 bool "Enable -depth"
Denis Vlasenko56fce002007-04-04 23:41:35 +0000117 default y
118 depends on FIND
119 help
120 Process each directory's contents before the directory itself.
121
122config FEATURE_FIND_PAREN
123 bool "Enable parens in options"
124 default y
125 depends on FIND
126 help
127 Enable usage of parens '(' to specify logical order of arguments.
128
129config FEATURE_FIND_SIZE
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200130 bool "Enable -size: file size matching"
Denis Vlasenko56fce002007-04-04 23:41:35 +0000131 default y
132 depends on FIND
133 help
134 Support the 'find -size' option for searching by file size.
135
136config FEATURE_FIND_PRUNE
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200137 bool "Enable -prune: exclude subdirectories"
Denis Vlasenko56fce002007-04-04 23:41:35 +0000138 default y
139 depends on FIND
140 help
141 If the file is a directory, dont descend into it. Useful for
142 exclusion .svn and CVS directories.
Denis Vlasenkocf787cf2007-02-04 17:11:25 +0000143
Denis Vlasenko62f04792007-04-13 10:00:12 +0000144config FEATURE_FIND_DELETE
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200145 bool "Enable -delete: delete files/dirs"
Denis Vlasenko62f04792007-04-13 10:00:12 +0000146 default n
147 depends on FIND && FEATURE_FIND_DEPTH
148 help
Bernhard Reutner-Fischerd4988502008-10-27 21:30:39 +0000149 Support the 'find -delete' option for deleting files and directories.
Denis Vlasenko62f04792007-04-13 10:00:12 +0000150 WARNING: This option can do much harm if used wrong. Busybox will not
151 try to protect the user from doing stupid things. Use with care.
152
153config FEATURE_FIND_PATH
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200154 bool "Enable -path: match pathname with shell pattern"
Denis Vlasenko62f04792007-04-13 10:00:12 +0000155 default y
156 depends on FIND
157 help
Denis Vlasenkob9411292007-06-15 23:43:11 +0000158 The -path option matches whole pathname instead of just filename.
159
160config FEATURE_FIND_REGEX
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200161 bool "Enable -regex: match pathname with regex"
Denis Vlasenkob9411292007-06-15 23:43:11 +0000162 default y
163 depends on FIND
164 help
165 The -regex option matches whole pathname against regular expression.
Denis Vlasenko62f04792007-04-13 10:00:12 +0000166
Denis Vlasenkoa19faf82007-06-19 22:22:57 +0000167config FEATURE_FIND_CONTEXT
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200168 bool "Enable -context: security context matching"
Denis Vlasenkoa19faf82007-06-19 22:22:57 +0000169 default n
170 depends on FIND && SELINUX
171 help
172 Support the 'find -context' option for matching security context.
173
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000174config GREP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000175 bool "grep"
176 default n
177 help
Eric Andersen65e20a32003-07-05 07:52:35 +0000178 grep is used to search files for a specified pattern.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000179
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000180config FEATURE_GREP_EGREP_ALIAS
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200181 bool "Enable extended regular expressions (egrep & grep -E)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000182 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000183 depends on GREP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000184 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000185 Enabled support for extended regular expressions. Extended
Eric Andersenfb0c6af2003-07-14 19:18:43 +0000186 regular expressions allow for alternation (foo|bar), grouping,
187 and various repetition operators.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000188
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000189config FEATURE_GREP_FGREP_ALIAS
Rob Landley2ec922e2006-04-13 23:22:16 +0000190 bool "Alias fgrep to grep -F"
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000191 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000192 depends on GREP
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000193 help
Mike Frysinger15ca5862005-07-31 22:41:05 +0000194 fgrep sees the search pattern as a normal string rather than
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000195 regular expressions.
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200196 grep -F always works, this just creates the fgrep alias.
Glenn L McGrathc91ce572003-04-27 02:43:54 +0000197
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000198config FEATURE_GREP_CONTEXT
Rob Landley2ec922e2006-04-13 23:22:16 +0000199 bool "Enable before and after context flags (-A, -B and -C)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000200 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000201 depends on GREP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000202 help
Eric Andersene5642112003-07-14 19:37:08 +0000203 Print the specified number of leading (-B) and/or trailing (-A)
204 context surrounding our matching lines.
205 Print the specified number of context lines (-C).
Eric Andersenc9f20d92002-12-05 08:41:41 +0000206
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000207config XARGS
Eric Andersenc9f20d92002-12-05 08:41:41 +0000208 bool "xargs"
209 default n
210 help
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200211 xargs is used to execute a specified command for
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000212 every item from standard input.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000213
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000214config FEATURE_XARGS_SUPPORT_CONFIRMATION
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200215 bool "Enable -p: prompt and confirmation"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000216 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000217 depends on XARGS
Glenn L McGrath99825962003-10-09 11:06:45 +0000218 help
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200219 Support -p: prompt the user whether to run each command
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000220 line and read a line from the terminal.
221
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000222config FEATURE_XARGS_SUPPORT_QUOTES
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200223 bool "Enable single and double quotes and backslash"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000224 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000225 depends on XARGS
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000226 help
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200227 Support quoting in the input.
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000228
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000229config FEATURE_XARGS_SUPPORT_TERMOPT
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200230 bool "Enable -x: exit if -s or -n is exceeded"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000231 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000232 depends on XARGS
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000233 help
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200234 Support -x: exit if the command size (see the -s or -n option)
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000235 is exceeded.
236
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000237config FEATURE_XARGS_SUPPORT_ZERO_TERM
Denys Vlasenko2207cd62009-06-18 19:59:51 +0200238 bool "Enable -0: NUL-terminated input"
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000239 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000240 depends on XARGS
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000241 help
Denys Vlasenkobcbd37d2009-06-18 13:23:58 +0200242 Support -0: input items are terminated by a NUL character
243 instead of whitespace, and the quotes and backslash
Glenn L McGrathd12061b2003-10-10 23:15:23 +0000244 are not special.
Glenn L McGrath99825962003-10-09 11:06:45 +0000245
Eric Andersenc9f20d92002-12-05 08:41:41 +0000246endmenu