I need a script in any language to capitalize the first letter of every word in a file.
Thanks for all the answers.
Stackoverflow rocks!
You can do it with Ruby too, using the command line format in a terminal:
Ruby
cat FILENAME | ruby -n -e 'puts gsub(/\b\w/, &:upcase)'
Or:
ruby -e 'puts File.read("FILENAME").gsub(/\b\w/, &:upcase)'