"\tARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" \
"\tARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" \
"\tARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" \
- "\tSTRING : REGEXP anchored pattern match of REGEXP in STRING\n" \
- "\tmatch STRING REGEXP same as STRING : REGEXP\n" \
- "\tsubstr STRING POS LENGTH substring of STRING, POS counted from 1\n" \
- "\tindex STRING CHARS index in STRING where any CHARS is found, or 0\n" \
- "\tlength STRING length of STRING\n" \
- "\tquote TOKEN interpret TOKEN as a string, even if it is a \n" \
- "\t keyword like `match' or an operator like `/'\n" \
- "\t( EXPRESSION ) value of EXPRESSION\n\n" \
+ "\tSTRING : REGEXP anchored pattern match of REGEXP in STRING\n" \
+ "\tmatch STRING REGEXP same as STRING : REGEXP\n" \
+ "\tsubstr STRING POS LENGTH substring of STRING, POS counted from 1\n" \
+ "\tindex STRING CHARS index in STRING where any CHARS is found,\n" \
+ "\t or 0\n" \
+ "\tlength STRING length of STRING\n" \
+ "\tquote TOKEN interpret TOKEN as a string, even if\n" \
+ "\t it is a keyword like `match' or an\n" \
+ "\t operator like `/'\n" \
+ "\t( EXPRESSION ) value of EXPRESSION\n\n" \
"Beware that many operators need to be escaped or quoted for shells.\n" \
"Comparisons are arithmetic if both ARGs are numbers, else\n" \
"lexicographical. Pattern matches return the string matched between \n" \
USAGE_KLOGD("\t-K\t\tDo not start up the klogd process\n") \
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \
USAGE_REMOTE_LOG( \
- "\n\t-R HOST[:PORT]\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n" \
- "\t-L\t\tLog locally as well as network logging (default is network only)")
+ "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \
+ "\t-L\t\tLog locally and via network logging (default is network only)")
#ifdef BB_FEATURE_SIMPLE_TAIL
"Checks file types and compares values returning an exit\n" \
"code determined by the value of EXPRESSION."
+#ifdef BB_FEATURE_TFTP_GET
+ #define USAGE_TFTP_GET(a) a
+#else
+ #define USAGE_TFTP_GET(a)
+#endif
+#ifdef BB_FEATURE_TFTP_PUT
+ #define USAGE_TFTP_PUT(a) a
+#else
+ #define USAGE_TFTP_PUT(a)
+#endif
+
+#define tftp_trivial_usage \
+ "command SOURCE DEST"
+#define tftp_full_usage \
+ "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
+ "Commands:\n" \
+ USAGE_TFTP_GET( \
+ "\tget\tGet file from server SOURCE and store to local DEST.\n" \
+ ) \
+ USAGE_TFTP_PUT( \
+ "\tput\tPut local file SOURCE to server DEST.\n" \
+ ) \
+ "\nWhen nameing a server, use the syntax \"server:file\"."
+
#define touch_trivial_usage \
"[-c] file [file ...]"
#define touch_full_usage \