diff options
author | Glenn L McGrath | 2002-09-15 17:03:48 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-09-15 17:03:48 +0000 |
commit | 7a32aaacd02c7f4035b0894aced7860658703985 (patch) | |
tree | 254a51ff50e97507a9dc8810b4cf014a2e825c88 /include | |
parent | b3c4e9add527fb03e20998679a049f84cbe12ac7 (diff) | |
download | busybox-7a32aaacd02c7f4035b0894aced7860658703985.zip busybox-7a32aaacd02c7f4035b0894aced7860658703985.tar.gz |
Awk applet written from scratch by Dmitry Zakharov
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index a1084fc..9117880 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 ffc3724..12289ad 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 \ |