repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
r25068: Older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for every opcode on the
[Samba.git]
/
source
/
script
/
count_80_col.pl
blob
e1c8ff46a2d5140239b3bf7eab7a84ffd20af9a6
1
#!/usr/bin/perl -w
2
3
open
(
INFILE
,
"
$ARGV
[0]"
) ||
die
$
@
;
4
5
$count
=
0
;
6
while
( <
INFILE
> ) {
7
$count
++
if
(
length
(
$_
) >
80
);
8
}
9
10
close
(
INFILE
);
11
print
"
$ARGV
[0]:
$count
lines > 80 characters
\n
"
if
(
$count
>
0
);
12
13
exit
(
0
);
14
15