static char *sccsid
= "@(#)uniq.c 4.1 (Berkeley) %G%";
* Deal with duplicated lines in a file
static char b1
[1000], b2
[1000];
fields
= atoi(&argv
[1][1]);
letters
= atoi(&argv
[1][1]);
if (freopen(argv
[1], "r", stdin
) == NULL
)
printe("cannot open %s\n", argv
[1]);
if(argc
> 2 && freopen(argv
[2], "w", stdout
) == NULL
)
printe("cannot create %s\n", argv
[2]);
while((c
= getchar()) != '\n') {
register char b1
[], b2
[];
if(c
!= *b2
++) return(0);
while(*s
== ' ' || *s
== '\t')
while( !(*s
== ' ' || *s
== '\t' || *s
== 0) )
while(nl
++ < letters
&& *s
!= 0)