From ef5e8f8de04af2f87a77738bfbad2ac1e58605d9 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 7 Nov 2002 02:09:37 +0000 Subject: Implement a small strings applet --- include/applets.h | 3 +++ include/usage.h | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 1660b11c5..e41a48996 100644 --- a/include/applets.h +++ b/include/applets.h @@ -440,6 +440,9 @@ #ifdef CONFIG_START_STOP_DAEMON APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, _BB_SUID_NEVER, start_stop_daemon) #endif +#ifdef CONFIG_STRINGS + APPLET(strings, strings_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_STTY APPLET(stty, stty_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index b66d96402..b49f3869b 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1681,6 +1681,15 @@ "-s \t\tsignal to send (default 15)\n"\ "-a \t\tprogram to start (default )\n" +#define strings_trivial_usage \ + "[-afo] [-n length] [file ... ]" +#define strings_full_usage \ + "Display printable strings in a binary file." \ + "\n\nOptions:" \ + "\n\t-f\tPrecede each string with the name of the file where it was found." \ + "\n\t-n N\tSpecifies that at least N characters forms a sequence (default 4)" \ + "\n\t-o\tEach string is preceded by its decimal offset in the file." + #define stty_trivial_usage \ "[-a|g] [-F DEVICE] [SETTING]..." #define stty_full_usage \ -- cgit v1.2.3