From Karl.
else
{
printf ("\
-Usage: %s PATH [SUFFIX]\n\
+Usage: %s NAME [SUFFIX]\n\
or: %s OPTION\n\
",
program_name, program_name);
printf ("\
+Print NAME with any leading directory components removed.\n\
+If specified, also remove a trailing SUFFIX.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
",
program_name, program_name);
printf ("\
+Display the current time in the given FORMAT, or set the system date.\n\
\n\
-d, --date=STRING display time described by STRING, not `now'\n\
-f, --file=DATEFILE like --date once for each line of DATEFILE\n\
else
{
printf ("\
-Usage: %s PATH\n\
+Usage: %s NAME\n\
or: %s OPTION\n\
",
program_name, program_name);
printf ("\
+Print NAME with its trailing /component removed; if NAME contains no /'s,\n\
+output `.' (meaning the current directory).\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
{
printf ("Usage: %s [OPTION]... [STRING]...\n", program_name);
printf ("\
+Echo the STRING(s) to standard output.\n\
\n\
-n do not output the trailing newline\n\
-e (unused)\n\
printf ("Usage: %s [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]\n",
program_name);
printf ("\
+Set each NAME to VALUE in the environment and run COMMAND.\n\
\n\
-u, --unset=NAME remove variable from the environment\n\
-i, --ignore-environment start with an empty environment\n\
\n\
");
printf ("\
-EXPRESSION value is written on standard output. A white line\n\
+Print the value of EXPRESSION to standard output. A blank line below\n\
separates increasing precedence groups. EXPRESSION may be:\n\
\n\
ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n\
");
printf ("\
\n\
-Beware that some operators need to be escaped by backslashes for shells.\n\
+Beware that many operators need to be escaped or quoted for shells.\n\
Comparisons are arithmetic if both ARGs are numbers, else lexicographical.\n\
Pattern matches return the string matched between \\( and \\) or null; if\n\
\\( and \\) are not used, they return the number of characters matched or 0.\n\
printf ("\
Usage: %s [NAME]\n\
or: %s OPTION\n\
+Print the hostname of the current system.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
{
printf ("Usage: %s [OPTION]... [USERNAME]\n", program_name);
printf ("\
+Print information for USERNAME, or the current user.\n\
\n\
-g, --group print only the group ID\n\
-G, --groups print only the supplementary groups\n\
{
printf ("Usage: %s [OPTION]...\n", program_name);
printf ("\
+Print the name of the current user.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
{
printf ("Usage: %s [OPTION]... [COMMAND [ARG]...]\n", program_name);
printf ("\
+Run COMMAND with an adjusted scheduling priority.\n\
+With no COMMAND, print the current scheduling priority. ADJUST is 10\n\
+by default. Range goes from -20 (highest priority) to 19 (lowest).\n\
\n\
-ADJUST increment priority by ADJUST first\n\
-n, --adjustment=ADJUST same as -ADJUST\n\
--help display this help and exit\n\
- --version output version information and exit\n\
-\n\
-With no COMMAND, print the current scheduling priority. ADJUST is 10\n\
-by default. Range goes from -20 (highest priority) to 19 (lowest).\n\
-");
+ --version output version information and exit\n");
}
exit (status);
}
usage_try="
Try \`$0 --help' for more information."
-usage_help="
+usage_help="Run COMMAND, ignoring hangup signals.
+
--help display this help and exit
--version output version information and exit"
program_name);
else
{
- printf ("Usage: %s [OPTION]... PATH...\n", program_name);
+ printf ("Usage: %s [OPTION]... NAME...\n", program_name);
printf ("\
+Diagnose unportable constructs in NAME.\n\
\n\
-p, --portability check for all POSIX systems, not only this one\n\
--help display this help and exit\n\
{
printf ("Usage: %s [OPTION]... [VARIABLE]...\n", program_name);
printf ("\
+If no environment VARIABLE specified, print them all.\n\
\n\
--help display this help and exit\n\
- --version output version information and exit\n\
-\n\
-If no VARIABLE, print them all.\n\
-");
+ --version output version information and exit\n");
}
exit (status);
}
",
program_name, program_name);
printf ("\
+Print ARGUMENT(s) according to FORMAT.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
{
printf ("Usage: %s [OPTION]\n", program_name);
printf ("\
+Print the full filename of the current working directory.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
{
printf ("Usage: %s [OPTION]... NUMBER[SUFFIX]\n", program_name);
printf ("\
+Pause for NUMBER seconds.\n\
+SUFFIX may be s to keep seconds, m for minutes, h for hours or d for days.\n\
\n\
--help display this help and exit\n\
- --version output version information and exit\n\
-\n\
-SUFFIX may be s for seconds, m for minutes, h for hours or d for days.\n\
-");
+ --version output version information and exit\n");
}
exit (status);
}
",
program_name, program_name);
printf ("\
+Print or change terminal characteristics.\n\
\n\
-a, --all print all current settings in human-readable form\n\
-g, --save print all current settings in a stty-readable form\n\
{
printf ("Usage: %s [OPTION]... [-] [USER [ARG]...]\n", program_name);
printf ("\
+Change the effective user id and group id to that of USER.\n\
\n\
- -l, --login make the shell a login shell\n\
+ -, -l, --login make the shell a login shell\n\
-c, --commmand=COMMAND pass a single COMMAND to the shell with -c\n\
-f, --fast pass -f to the shell (for csh or tcsh)\n\
-m, --preserve-environment do not reset environment variables\n\
{
printf ("Usage: %s [OPTION]... [FILE]...\n", program_name);
printf ("\
+Copy standard input to each FILE, and also to standard output.\n\
\n\
-a, --append append to the given FILEs, do not overwrite\n\
-i, --ignore-interrupts ignore interrupt signals\n\
",
program_name, program_name);
printf ("\
+Exit with the status determined by EXPRESSION.\n\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
{
printf ("Usage: %s [OPTION]...\n", program_name);
printf ("\
+Print the file name of the terminal connected to standard input.\n\
\n\
-s, --silent, --quiet print nothing, only return an exit status\n\
--help display this help and exit\n\
{
printf ("Usage: %s [OPTION]...\n", program_name);
printf ("\
+Print certain system information. With no OPTION, same as -s.\n\
\n\
-a, --all print all information\n\
-m, --machine print the machine (hardware) type\n\
-s, --sysname print the operating system name\n\
-v print the operating system version\n\
--help display this help and exit\n\
- --version output version information and exit\n\
-\n\
-Without any OPTION, assume -s.\n\
-");
+ --version output version information and exit\n");
}
exit (status);
}
{
printf ("Usage: %s [OPTION]... [ FILE ]\n", program_name);
printf ("\
+Output who is currently logged in according to FILE.\n\
+If FILE not given, uses /etc/utmp. /etc/wtmp as FILE is common.\n\
\n\
--help display this help and exit\n\
- --version output version information and exit\n\
-\n\
-If FILE not given, uses /etc/utmp. /etc/wtmp as FILE is common.\n\
-");
+ --version output version information and exit\n");
}
exit (status);
}
{
printf ("Usage: %s [OPTION]...\n", program_name);
printf ("\
+Print the user name associated with the current effective user id.\n\
+Same as id -un.\n\
\n\
--help display this help and exit\n\
- --version output version information and exit\n\
-\n\
-Same as id -un.\n\
-");
+ --version output version information and exit\n");
}
exit (status);
}
{
printf ("Usage: %s [OPTION]... [STRING]...\n", program_name);
printf ("\
+Repeatedly output a line with all specified STRING(s), or `y'.\n\
\n\
--help display this help and exit\n\
- --version output version information and exit\n\
-\n\
-Without any STRING, assume `y'.\n\
-");
+ --version output version information and exit\n");
}
exit (status);
}