diff --git a/README b/README index 0fde83a..4a3d7a0 100644 --- a/README +++ b/README @@ -54,7 +54,7 @@ The following tools are implemented: =*|o nice . #*|o nl . =*|o nohup . - od -t, -v + od -t #*|o paste . =*|x printenv . #*|o printf . diff --git a/od.1 b/od.1 index 2fb1311..7900dc7 100644 --- a/od.1 +++ b/od.1 @@ -8,6 +8,7 @@ .Nm .Op Fl A Ar d|o|x|n .Op Fl t Ar a|c|d|o|u|x +.Op Fl v .Op Ar file... .Sh DESCRIPTION .Nm @@ -27,4 +28,6 @@ he\fIx\fRadecimal | \fIn\fRone. If unspecified, the default is octal. Display the content as n\fIa\fRmed character, \fIc\fRharacter, signed \fId\fRecimal, \fIo\fRctal, \fIu\fRnsigned decimal, or he\fIx\fRadecimal. If unspecified, the default is octal. +.It Fl v +Always set. Write all input data, including duplicate lines. .El diff --git a/od.c b/od.c index effe5f5..30031c7 100644 --- a/od.c +++ b/od.c @@ -100,7 +100,7 @@ od(FILE *in, char *in_name, FILE *out, char *out_name) static void usage(void) { - eprintf("usage: %s [-A d|o|x|n] [-t a|c|d|o|u|x] [file ...]\n", argv0); + eprintf("usage: %s [-A d|o|x|n] [-t a|c|d|o|u|x] [-v] [file ...]\n", argv0); } int @@ -129,6 +129,9 @@ main(int argc, char *argv[]) usage(); type = s[0]; break; + case 'v': + /* Always set. Use "uniq -f 1 -c" to handle duplicate lines. */ + break; default: usage(); } ARGEND;