Skip to content

Commit

Permalink
name_generator: initial
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Apr 15, 2011
1 parent fda1985 commit ae82afd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions name_generator
@@ -0,0 +1,14 @@
#!/usr/bin/perl
use strict;

#open(my $fh, '<', '/usr/share/dict/cracklib-small') or die($!);
#open(my $fh, '<', '/home/scp1/doc/wordlist_swedish.txt');
open(my $fh, '<', '/home/scp1/doc/wordlists/big');
my @words = grep{ (length($_) > 4) && lc(chomp($_)) } (<$fh>);

my $re = shift;

for my $w( sort{ length($a) <=> length($b) } grep{ m/$re/ } @words) {
print "$w\n";
}

0 comments on commit ae82afd

Please sign in to comment.