[hackers] [sbase] sed: Add usage || Pieter Kockx
commit a0a87917044cc6e485539e30a594bf924029f1c5
Author: Pieter Kockx <pieterkockx_AT_gmail.com>
AuthorDate: Wed Oct 25 09:55:50 2017 +0200
Commit: Michael Forney <mforney_AT_mforney.org>
CommitDate: Fri Nov 10 18:19:04 2017 -0800
sed: Add usage
diff --git a/sed.c b/sed.c
index 6cfd121..259b654 100644
--- a/sed.c
+++ b/sed.c
_AT_@ -355,7 +355,9 @@ leprintf(char *s)
static void
usage(void)
{
- eprintf("USAGE\n");
+ eprintf("usage: sed [-nrE] script [file ...]\n"
+ " sed [-nrE] -e script [-e script] ... [-f scriptfile] ... [file ...]\n"
+ " sed [-nrE] [-e script] ... -f scriptfile [-f scriptfile] ... [file ...]\n");
}
/* Differences from POSIX
Received on Sat Nov 11 2017 - 04:29:43 CET
This archive was generated by hypermail 2.3.0
: Sat Nov 11 2017 - 04:36:19 CET