On Tue, Aug 28, 2001 at 10:53:30AM -0700, Ethan Dicks wrote:
>
> I've done it for every sun4c machine I've ever had. At one point, I
> had a regular expression to grep out six letter words from /usr/dict/words
> with a-f and perhaps i and o. There are a couple more than c0ffee, but
> that's the canonical one from the NVRAM FAQ.
On Solaris 7 (OT, I know) the little Perl snippet below finds 14 matching
words, on a current Linux system I get 23 hits.
Perl snippet:
#!/usr/bin/perl
while ( $line = <STDIN> ) {
if ( $line =~ /^[a-fio]{6}$/ ) {
print $line;
}
}
Regards,
Alex.
--
We have gone from a world of concentrated knowledge and wisdom to one of
distributed ignorance. And we know and understand less while being
increasingly capable. -- Prof. Peter Cochrane, formerly of BT Labs
Received on Wed Aug 29 2001 - 07:17:22 BST