Shiny
- #!/usr/bin/ruby
- # Purpose: Extracts individual words from the Crimson Editor dictionary file.
- # Remarks: Redirect the output to create a more Unix like "words" file.
- words = []
- IO.readlines("/usr/share/dict/cedt.dic").each { |line|
- line.chomp.split(" ").each { |word|
- words << word.chomp
- }
- }
- words.sort.each { |word| puts word }
Comments