- or download this
perl -ne '$_=lc;s/\W+/ /g;@w{split /\s+/}=();END{$,="\n";print sort ke
+ys %w}'
- or download this
while (<>) { # for each input line
$_=lc; # lowercase
...
}
$,="\n"; # separate 'print' args with a newline
print sort keys %w; # print the sorted keys
- or download this
tr -cs '[:alnum:]' '\n' < textfile |tr '[:upper:]' '[:lower:]'|sort|un
+iq