#!/usr/bin/perl -w use strict; my $count = 0; $count += /\band\b/g while <>; print "$count\n";
Makeshifts last the longest.
In reply to Re^2: How to count the total number of times the word 'the' and 'and' occur in 5 files i selected?
by Aristotle
in thread How to count the total number of times the word 'the' and 'and' occur in 5 files i selected?
by lingling
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |