#!/usr/local/bin/ruby hash={} File.open(ARGV[0]).read.split(/[^a-zA-Z0-9]+/).each { | word | unless hash[word] hash[word]=true puts word end }