in reply to Yet Another Newbie Code...

Too much work :)
perl -F'\W+' -ane 'print join $/,@F' in >> out

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: (jeffa) Re: Yet Another Newbie Code...
by majin (Acolyte) on Aug 19, 2002 at 03:36 UTC
    Can this take files as input and/or output? I am just asking and not questioning your ways.

    Majin
      The in you see in jeffa's post is a filename.. you can actually use any number of input filenames as in perl -F'\W+' -ane 'print join $/,@F' in1 in2 in3 in4 in5 in6 in7 >> wordlist Personally I would amend this to read perl -F'\W+' -alne '@word{@F}=(); END { print sort keys %word }' in >> wordlist which outputs only unique words, sorted alphanumerically.

      Makeshifts last the longest.