Help for this page

Select Code to Download


  1. or download this
    perl -ne '$_=lc;s/\W+/ /g;@w{split /\s+/}=();END{$,="\n";print sort ke
    +ys %w}'
    
  2. 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
    
  3. or download this
    tr -cs '[:alnum:]' '\n' < textfile |tr '[:upper:]' '[:lower:]'|sort|un
    +iq