Mercurial > hg > toybox
comparison toys/pending/find.c @ 1234:c99c215b4604 draft
find: clarify and expand the help for find -type
author | Isaac Dunham <ibid.ag@gmail.com> |
---|---|
date | Sat, 29 Mar 2014 15:25:23 -0500 |
parents | b042cd34e564 |
children | 85f297591693 |
comparison
equal
deleted
inserted
replaced
1233:859b9bdde999 | 1234:c99c215b4604 |
---|---|
10 | 10 |
11 config FIND | 11 config FIND |
12 bool "find" | 12 bool "find" |
13 default n | 13 default n |
14 help | 14 help |
15 usage: find [<dir>] [<options] | 15 usage: find [DIR] [<options>] |
16 | 16 |
17 -name <pattern> match pattern | 17 -name <pattern> match pattern |
18 -type [fcdl] match file type | 18 -type [bcdflps] match file type |
19 !, -a, -o not, and , or | 19 !, -a, -o not, and , or |
20 (, ) group expressions | 20 (, ) group expressions |
21 -mtime [-+]n match file modification time (to within 24 hours) | 21 -mtime [-+]n match file modification time (to within 24 hours) |
22 \t\t +=greater (older) than, -=less (younger) than | 22 \t\t +=greater (older) than, -=less (younger) than |
23 | |
24 File types: | |
25 b block device d directory l symlink s socket | |
26 c char device f regular file p FIFO | |
23 */ | 27 */ |
24 | 28 |
25 /* To Do: | 29 /* To Do: |
26 * -exec action | 30 * -exec action |
27 */ | 31 */ |