cap - capitalize the first letter of each word
SYNOPSIS
cap < textfile
cap -s string
cap [-fc] [-h] column ... < tableorlist
DESCRIPTION
cap
capitalizes the first letter of each text word found in the
standard input, or in
string.
If columns are named or if the
-f
or
-h
switches are used, then
cap
assumes that the input is in /rdb table or list format
and capitalizes the first letter of each text word in the named
column(s)
or in all columns if none are specified.
OPTIONS
- -s string
- capitalize the first letter of each word in string.
Any other command line options are ignored and tables or
files waiting to be read from the standard input are flushed.
- -fc
- use c as the input field separation character.
- -h
- do
not
cap the header row (for tables and lists only).
- column ...
- capitalize the first letters of each text word contained in the named
column(s).
EXAMPLE
$ cap -s 'this is a fine state of affairs!'
This Is A Fine State Of Affairs!
$ cat inventory
item amount cost value description
---- ------ ---- ----- --------------
1 3 50 150 rubber gloves
2 100 5 500 test tubes
3 5 80 400 clamps
$ cap < inventory
Item Amount Cost Value Description
---- ------ ---- ----- --------------
1 3 50 150 Rubber Gloves
2 100 5 500 Test Tubes
3 5 80 400 Clamps
$ cap -h description < inventory
item amount cost value description
---- ------ ---- ----- --------------
1 3 50 150 Rubber Gloves
2 100 5 500 Test Tubes
3 5 80 400 Clamps
SEE ALSO