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!
bash:
$ X=(hello world) $ echo ${X[@]^} Hello World
ruby:
irb> foo = ""; "foo bar".split.each { |x| foo += x.capitalize + " " } => ["foo", "bar"] irb> foo => "Foo Bar "