Using TR to produce Initial Caps in bash script
16 Dec
2002
16 Dec
'02
19:34
Good day all, I'm working on a bash script and need some help. Can someone please tell me what the syntax is for using the "tr" command to produce an initial capped word, or if it's possible to accomplish this without shaving the initial variable down to the first letter? I've tried what looked obvious without any luck, though I can translate to all upper or all lower cases no problem. I'm using the following command to test: echo sometext | tr CHAR1 '[A-Z]' Expected results "Sometext", returned "sometext". Am I missing an option or is SET1 just completely wrong? Thanks in advance. Cordially, Chris Goodnough Advantage Software Senior Technician & Systems Analyst
8040
Age (days ago)
8040
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Goodnough