From dbc5005814a66c3d06f50c280b1bb5a01e392022 Mon Sep 17 00:00:00 2001 From: bug1 Date: Sun, 15 Sep 2002 17:03:48 +0000 Subject: Awk applet written from scratch by Dmitry Zakharov git-svn-id: svn://busybox.net/trunk/busybox@5487 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- include/applets.h | 3 +++ include/usage.h | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/include/applets.h b/include/applets.h index a1084fcc6..9117880ad 100644 --- a/include/applets.h +++ b/include/applets.h @@ -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 diff --git a/include/usage.h b/include/usage.h index ffc3724be..12289ad5b 100644 --- a/include/usage.h +++ b/include/usage.h @@ -38,6 +38,14 @@ "\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 \ -- cgit v1.2.3-55-g6feb