-.\" $OpenBSD: od.1,v 1.26 2014/04/14 22:51:20 sobrado Exp $
+.\" $OpenBSD: od.1,v 1.27 2014/04/15 15:35:24 sobrado Exp $
.\" $NetBSD: od.1,v 1.16 2001/12/07 01:23:42 bjh21 Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"/
-.Dd $Mdocdate: April 14 2014 $
+.Dd $Mdocdate: April 15 2014 $
.Dt OD 1
.Os
.Sh NAME
.Sh SYNOPSIS
.Nm od
.Bk -words
-.Op Fl aBbcDdeFfHhIiLlOovXx
+.Op Fl aBbcDdeFfHhIiLlOosvXx
.Op Fl A Ar base
.Op Fl j Ar offset
.Op Fl N Ar length
Display the input offset in octal, followed by four space-separated,
ten column, space filled, four-byte units of input data, in octal, per line.
.It Fl d
-.Em Two-byte decimal display .
+.Em Two-byte unsigned decimal display .
Display the input offset in octal, followed by eight
space-separated, five column, zero-filled, two-byte units
of input data, in unsigned decimal, per line.
Display the input offset in octal, followed by eight
space-separated, six column, zero-filled, two-byte units
of input data, in octal, per line.
+.It Fl s
+.Em Two-byte signed decimal display .
+Display the input offset in octal, followed by eight
+space-separated, five column, zero-filled, two-byte units
+of input data, in signed decimal, per line.
.It Fl t Ar type_string
Specify one or more output types.
The
.Sh EXIT STATUS
.Ex -std od
.Sh SEE ALSO
-.Xr hexdump 1 ,
-.Xr strings 1
+.Xr hexdump 1
.Sh HISTORY
The
.Nm
-/* $OpenBSD: odsyntax.c,v 1.23 2014/04/14 22:51:20 sobrado Exp $ */
+/* $OpenBSD: odsyntax.c,v 1.24 2014/04/15 15:35:24 sobrado Exp $ */
/* $NetBSD: odsyntax.c,v 1.15 2001/12/07 15:14:29 bjh21 Exp $ */
/*-
deprecated = 1;
argv = *argvp;
while ((ch = getopt(argc, argv,
- "A:aBbcDdeFfHhIij:LlN:Oot:vXx")) != -1)
+ "A:aBbcDdeFfHhIij:LlN:Oost:vXx")) != -1)
switch (ch) {
case 'A':
switch (*optarg) {
case 'O':
odadd("4/4 \" %011o \" \"\\n\"");
break;
+ case 's':
+ odadd("8/2 \" %05d \" \"\\n\"");
+ break;
case 't':
posixtypes(optarg);
break;
oldusage(void)
{
extern char *__progname;
- fprintf(stderr, "usage: %s [-aBbcDdeFfHhIiLlOovXx] [-A base] "
+ fprintf(stderr, "usage: %s [-aBbcDdeFfHhIiLlOosvXx] [-A base] "
"[-j offset] [-N length]\n"
"\t[-t type_string] [[+]offset[.][Bb]] [file ...]\n", __progname);
exit(1);