aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/cal.c1
-rw-r--r--toys/posix/cat.c1
-rw-r--r--toys/posix/cut.c14
-rw-r--r--toys/posix/mkdir.c1
-rw-r--r--toys/posix/rmdir.c1
5 files changed, 12 insertions, 6 deletions
diff --git a/toys/posix/cal.c b/toys/posix/cal.c
index e4301a64..bb476dfd 100644
--- a/toys/posix/cal.c
+++ b/toys/posix/cal.c
@@ -11,6 +11,7 @@ config CAL
default y
help
usage: cal [[month] year]
+
Print a calendar.
With one argument, prints all months of the specified year.
diff --git a/toys/posix/cat.c b/toys/posix/cat.c
index 78881c4c..3644c4f9 100644
--- a/toys/posix/cat.c
+++ b/toys/posix/cat.c
@@ -11,6 +11,7 @@ config CAT
default y
help
usage: cat [-u] [file...]
+
Copy (concatenate) files to stdout. If no files listed, copy from stdin.
Filename "-" is a synonym for stdin.
diff --git a/toys/posix/cut.c b/toys/posix/cut.c
index 5ca466dc..38f136e2 100644
--- a/toys/posix/cut.c
+++ b/toys/posix/cut.c
@@ -11,13 +11,15 @@ config CUT
default y
help
usage: cut OPTION... [FILE]...
+
Print selected parts of lines from each FILE to standard output.
- -b LIST select only these bytes from LIST.
- -c LIST select only these characters from LIST.
- -f LIST select only these fields.
- -d DELIM use DELIM instead of TAB for field delimiter.
- -s do not print lines not containing delimiters.
- -n don't split multibyte characters (Ignored).
+
+ -b LIST select only these bytes from LIST.
+ -c LIST select only these characters from LIST.
+ -f LIST select only these fields.
+ -d DELIM use DELIM instead of TAB for field delimiter.
+ -s do not print lines not containing delimiters.
+ -n don't split multibyte characters (Ignored).
*/
#define FOR_cut
#include "toys.h"
diff --git a/toys/posix/mkdir.c b/toys/posix/mkdir.c
index 5cbc28db..739f961b 100644
--- a/toys/posix/mkdir.c
+++ b/toys/posix/mkdir.c
@@ -11,6 +11,7 @@ config MKDIR
default y
help
usage: mkdir [-vp] [-m mode] [dirname...]
+
Create one or more directories.
-m set permissions of directory to mode.
diff --git a/toys/posix/rmdir.c b/toys/posix/rmdir.c
index fec3ce98..23266c31 100644
--- a/toys/posix/rmdir.c
+++ b/toys/posix/rmdir.c
@@ -11,6 +11,7 @@ config RMDIR
default y
help
usage: rmdir [-p] [dirname...]
+
Remove one or more directories.
-p Remove path.