summaryrefslogtreecommitdiff
path: root/Tools/capitalize
blob: a8330d167d124f0da445ef8c0ab55fe031f2dd9e (plain)
1
2
3
4
5
#!/bin/sh
# usage: capitalize word
# write word to stdout w/ first character upcased
first_char=`echo $1 | sed 's/^\(.\).*/\1/' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
echo ${first_char}`echo $1 | sed 's/^.//'`