changeset 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 859b9bdde999
children 63db77909fc8
files toys/pending/find.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/toys/pending/find.c	Fri Mar 28 22:55:30 2014 -0500
+++ b/toys/pending/find.c	Sat Mar 29 15:25:23 2014 -0500
@@ -12,14 +12,18 @@
   bool "find"
   default n
   help
-    usage: find [<dir>] [<options]
+    usage: find [DIR] [<options>]
 
     -name <pattern>    match pattern
-    -type [fcdl]       match file type
+    -type [bcdflps]    match file type
     !, -a, -o          not, and , or
     (, )               group expressions  
     -mtime [-+]n       match file modification time (to within 24 hours)
     \t\t               +=greater (older) than, -=less (younger) than
+
+    File types:
+    b  block device  d  directory     l  symlink  s  socket
+    c  char device   f  regular file  p  FIFO
 */
 
 /* To Do: