sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #68332
Re: cut & sed
René Mølsted <molsted@xxxxxxx> writes:
> On Wednesday, November 5, 2003, at 02:58 PM, Peter Makholm wrote:
>> perl -nle '$sum += $1 if /Found (\d+) spam/; END { print "Found $sum
>> spam" }'
>
> Hvor specificerer jeg input filen?
Bagerst:
$ perl -nle '$sum += $1 if /Found (\d+) spam/; END { print "Found $sum spam" }' logfil
--
Peter Makholm | What if:
peter@xxxxxxxxxxx | IBM bought Xenix from Microsoft instead of buying
http://hacking.dk | DOS?
Follow ups
References