projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bell 32V development
[unix-history]
/
usr
/
src
/
cmd
/
grep.c
diff --git
a/usr/src/cmd/grep.c
b/usr/src/cmd/grep.c
index
da87cb4
..
395ccdd
100644
(file)
--- a/
usr/src/cmd/grep.c
+++ b/
usr/src/cmd/grep.c
@@
-9,7
+9,6
@@
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
-#include <sys/param.h>
#define CBRA 1
#define CCHR 2
#define CBRA 1
#define CCHR 2
@@
-41,6
+40,7
@@
int hflag = 1;
int sflag;
int yflag;
int circf;
int sflag;
int yflag;
int circf;
+int blkno;
long tln;
int nsucc;
char *braslist[NBRA];
long tln;
int nsucc;
char *braslist[NBRA];
@@
-439,7
+439,6
@@
register char *lp, *ep;
succeed(f)
char *f;
{
succeed(f)
char *f;
{
- long ftell();
nsucc = 1;
if (sflag)
return;
nsucc = 1;
if (sflag)
return;
@@
-455,7
+454,7
@@
char *f;
if (nfile > 1 && hflag)
printf("%s:", f);
if (bflag)
if (nfile > 1 && hflag)
printf("%s:", f);
if (bflag)
- printf("%
ld:", (ftell(stdin)-1)/BSIZE
);
+ printf("%
u:", blkno
);
if (nflag)
printf("%ld:", lnum);
printf("%s\n", linebuf);
if (nflag)
printf("%ld:", lnum);
printf("%s\n", linebuf);