mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
sort flags; synchronize synopsis and usage.
ok jmc@
This commit is contained in:
parent
05ab7b6262
commit
f6a1871f92
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: strings.1,v 1.11 2007/05/31 19:20:17 jmc Exp $
|
||||
.\" $OpenBSD: strings.1,v 1.12 2008/06/01 21:42:30 sobrado Exp $
|
||||
.\" $NetBSD: strings.1,v 1.4 1994/12/10 11:54:28 jtc Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1990, 1993
|
||||
@ -30,7 +30,7 @@
|
||||
.\"
|
||||
.\" @(#)strings.1 8.1 (Berkeley) 6/6/93
|
||||
.\"
|
||||
.Dd $Mdocdate: May 31 2007 $
|
||||
.Dd $Mdocdate: June 1 2008 $
|
||||
.Dt STRINGS 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -39,8 +39,8 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm strings
|
||||
.Op Fl afo
|
||||
.Op Fl n Ar number
|
||||
.Op Fl m Ar number
|
||||
.Op Fl n Ar number
|
||||
.Op Fl t Ar radix
|
||||
.Op Ar file ...
|
||||
.Sh DESCRIPTION
|
||||
@ -64,14 +64,14 @@ to search the entire object file.
|
||||
.It Fl f
|
||||
Each string is preceded by the name of the file
|
||||
in which it was found.
|
||||
.It Fl n Ar number
|
||||
Specifies the minimum number of characters in a sequence to be
|
||||
.Ar number ,
|
||||
instead of four.
|
||||
.It Fl m Ar number
|
||||
Specifies the maximum number of characters in a sequence to be
|
||||
.Ar number ,
|
||||
instead of unlimited.
|
||||
.It Fl n Ar number
|
||||
Specifies the minimum number of characters in a sequence to be
|
||||
.Ar number ,
|
||||
instead of four.
|
||||
.It Fl o
|
||||
Each string is preceded by its octal offset in the file.
|
||||
.It Fl t Ar radix
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: strings.c,v 1.13 2008/04/23 01:02:19 ray Exp $ */
|
||||
/* $OpenBSD: strings.c,v 1.14 2008/06/01 21:42:30 sobrado Exp $ */
|
||||
/* $NetBSD: strings.c,v 1.7 1995/02/15 15:49:19 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -40,7 +40,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)strings.c 8.2 (Berkeley) 1/28/94";
|
||||
#endif
|
||||
static char rcsid[] = "$OpenBSD: strings.c,v 1.13 2008/04/23 01:02:19 ray Exp $";
|
||||
static char rcsid[] = "$OpenBSD: strings.c,v 1.14 2008/06/01 21:42:30 sobrado Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -262,6 +262,6 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage: strings [-afo] [-n length] [-t {o,d,x}] [file ... ]\n");
|
||||
"usage: strings [-afo] [-m number] [-n number] [-t radix] [file ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user