Awk applet written from scratch by Dmitry Zakharov
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 15 Sep 2002 17:03:48 +0000 (17:03 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 15 Sep 2002 17:03:48 +0000 (17:03 -0000)
include/applets.h
include/usage.h

index a1084fcc662117643f247102ba5e4d0efda87b73..9117880ade9d394476c9a7ee8aacf276a0e3818c 100644 (file)
@@ -61,6 +61,9 @@
 #ifdef CONFIG_ASH
        APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
 #endif
+#ifdef CONFIG_AWK
+       APPLET(awk, awk_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
 #ifdef CONFIG_BASENAME
        APPLET(basename, basename_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
 #endif
index ffc3724bec473471b31a8c0ac696dbcc80c78dbe..12289ad5b2c4aab74e2f0b7ee7059e1f60c30341 100644 (file)
        "\t-x\t\textract\n" \
        "\t-v\t\tverbosely list files processed\n"
 
+#define        awk_trivial_usage \
+       "[-v var=val][-F sep] { -f progname | 'programtext' } [FILE ...]"
+#define        awk_full_usage \
+       "Options:\n" \
+       "\t-v var=val\tassign value 'val' to variable 'var'\n" \
+       "\t-F sep\t\tuse 'sep' as field separator\n" \
+       "\t-f progname\tread program source from file 'progname'\n"
+
 #define basename_trivial_usage \
        "FILE [SUFFIX]"
 #define basename_full_usage \