2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
6 menu "Finding Utilities"
8 config BUSYBOX_CONFIG_FIND
12 find is used to search your system to find specified files.
14 config BUSYBOX_CONFIG_FEATURE_FIND_PRINT0
15 bool "Enable -print0: NUL-terminated output"
17 depends on BUSYBOX_CONFIG_FIND
19 Causes output names to be separated by a NUL character
20 rather than a newline. This allows names that contain
21 newlines and other whitespace to be more easily
22 interpreted by other programs.
24 config BUSYBOX_CONFIG_FEATURE_FIND_MTIME
25 bool "Enable -mtime: modified time matching"
27 depends on BUSYBOX_CONFIG_FIND
29 Allow searching based on the modification time of
32 config BUSYBOX_CONFIG_FEATURE_FIND_MMIN
33 bool "Enable -mmin: modified time matching by minutes"
35 depends on BUSYBOX_CONFIG_FIND
37 Allow searching based on the modification time of
40 config BUSYBOX_CONFIG_FEATURE_FIND_PERM
41 bool "Enable -perm: permissions matching"
43 depends on BUSYBOX_CONFIG_FIND
45 Enable searching based on file permissions.
47 config BUSYBOX_CONFIG_FEATURE_FIND_TYPE
48 bool "Enable -type: file type matching (file/dir/link/...)"
50 depends on BUSYBOX_CONFIG_FIND
52 Enable searching based on file type (file,
53 directory, socket, device, etc.).
55 config BUSYBOX_CONFIG_FEATURE_FIND_XDEV
56 bool "Enable -xdev: 'stay in filesystem'"
58 depends on BUSYBOX_CONFIG_FIND
60 This option allows find to restrict searches to a single filesystem.
62 config BUSYBOX_CONFIG_FEATURE_FIND_MAXDEPTH
63 bool "Enable -maxdepth N"
65 depends on BUSYBOX_CONFIG_FIND
67 This option enables -maxdepth N option.
69 config BUSYBOX_CONFIG_FEATURE_FIND_NEWER
70 bool "Enable -newer: compare file modification times"
72 depends on BUSYBOX_CONFIG_FIND
74 Support the 'find -newer' option for finding any files which have
75 a modified time that is more recent than the specified FILE.
77 config BUSYBOX_CONFIG_FEATURE_FIND_INUM
78 bool "Enable -inum: inode number matching"
80 depends on BUSYBOX_CONFIG_FIND
82 Support the 'find -inum' option for searching by inode number.
84 config BUSYBOX_CONFIG_FEATURE_FIND_EXEC
85 bool "Enable -exec: execute commands"
87 depends on BUSYBOX_CONFIG_FIND
89 Support the 'find -exec' option for executing commands based upon
92 config BUSYBOX_CONFIG_FEATURE_FIND_USER
93 bool "Enable -user: username/uid matching"
95 depends on BUSYBOX_CONFIG_FIND
97 Support the 'find -user' option for searching by username or uid.
99 config BUSYBOX_CONFIG_FEATURE_FIND_GROUP
100 bool "Enable -group: group/gid matching"
102 depends on BUSYBOX_CONFIG_FIND
104 Support the 'find -group' option for searching by group name or gid.
106 config BUSYBOX_CONFIG_FEATURE_FIND_NOT
107 bool "Enable the 'not' (!) operator"
109 depends on BUSYBOX_CONFIG_FIND
111 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'.
115 config BUSYBOX_CONFIG_FEATURE_FIND_DEPTH
118 depends on BUSYBOX_CONFIG_FIND
120 Process each directory's contents before the directory itself.
122 config BUSYBOX_CONFIG_FEATURE_FIND_PAREN
123 bool "Enable parens in options"
125 depends on BUSYBOX_CONFIG_FIND
127 Enable usage of parens '(' to specify logical order of arguments.
129 config BUSYBOX_CONFIG_FEATURE_FIND_SIZE
130 bool "Enable -size: file size matching"
132 depends on BUSYBOX_CONFIG_FIND
134 Support the 'find -size' option for searching by file size.
136 config BUSYBOX_CONFIG_FEATURE_FIND_PRUNE
137 bool "Enable -prune: exclude subdirectories"
139 depends on BUSYBOX_CONFIG_FIND
141 If the file is a directory, dont descend into it. Useful for
142 exclusion .svn and CVS directories.
144 config BUSYBOX_CONFIG_FEATURE_FIND_DELETE
145 bool "Enable -delete: delete files/dirs"
147 depends on BUSYBOX_CONFIG_FIND && BUSYBOX_CONFIG_FEATURE_FIND_DEPTH
149 Support the 'find -delete' option for deleting files and directories.
150 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.
153 config BUSYBOX_CONFIG_FEATURE_FIND_PATH
154 bool "Enable -path: match pathname with shell pattern"
156 depends on BUSYBOX_CONFIG_FIND
158 The -path option matches whole pathname instead of just filename.
160 config BUSYBOX_CONFIG_FEATURE_FIND_REGEX
161 bool "Enable -regex: match pathname with regex"
163 depends on BUSYBOX_CONFIG_FIND
165 The -regex option matches whole pathname against regular expression.
167 config BUSYBOX_CONFIG_FEATURE_FIND_CONTEXT
168 bool "Enable -context: security context matching"
170 depends on BUSYBOX_CONFIG_FIND && BUSYBOX_CONFIG_SELINUX
172 Support the 'find -context' option for matching security context.
174 config BUSYBOX_CONFIG_GREP
178 grep is used to search files for a specified pattern.
180 config BUSYBOX_CONFIG_FEATURE_GREP_EGREP_ALIAS
181 bool "Enable extended regular expressions (egrep & grep -E)"
183 depends on BUSYBOX_CONFIG_GREP
185 Enabled support for extended regular expressions. Extended
186 regular expressions allow for alternation (foo|bar), grouping,
187 and various repetition operators.
189 config BUSYBOX_CONFIG_FEATURE_GREP_FGREP_ALIAS
190 bool "Alias fgrep to grep -F"
192 depends on BUSYBOX_CONFIG_GREP
194 fgrep sees the search pattern as a normal string rather than
196 grep -F always works, this just creates the fgrep alias.
198 config BUSYBOX_CONFIG_FEATURE_GREP_CONTEXT
199 bool "Enable before and after context flags (-A, -B and -C)"
201 depends on BUSYBOX_CONFIG_GREP
203 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).
207 config BUSYBOX_CONFIG_XARGS
211 xargs is used to execute a specified command for
212 every item from standard input.
214 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION
215 bool "Enable -p: prompt and confirmation"
217 depends on BUSYBOX_CONFIG_XARGS
219 Support -p: prompt the user whether to run each command
220 line and read a line from the terminal.
222 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_QUOTES
223 bool "Enable single and double quotes and backslash"
225 depends on BUSYBOX_CONFIG_XARGS
227 Support quoting in the input.
229 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT
230 bool "Enable -x: exit if -s or -n is exceeded"
232 depends on BUSYBOX_CONFIG_XARGS
234 Support -x: exit if the command size (see the -s or -n option)
237 config BUSYBOX_CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM
238 bool "Enable -0: NUL-terminated input"
240 depends on BUSYBOX_CONFIG_XARGS
242 Support -0: input items are terminated by a NUL character
243 instead of whitespace, and the quotes and backslash