![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script needed to select and delete lower case and mixed case records | abhilash mn | Shell Programming and Scripting | 1 | 03-17-2008 08:00 AM |
| Sed - Lower case single characters | zlindner | UNIX for Dummies Questions & Answers | 6 | 12-09-2007 11:07 AM |
| Accepting Upper and Lower case | lweegp | Shell Programming and Scripting | 8 | 12-08-2007 06:57 PM |
| lower case to upper case string conversion in shell script | dchalavadi | UNIX for Dummies Questions & Answers | 3 | 05-29-2002 12:07 AM |
| Upper And Lower Case | pciatto | Shell Programming and Scripting | 1 | 04-29-2002 12:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
bourne shell - lower case a string
Hi. I came across a script that grabs the 3-char month with this command:
MON=`date "+%b"` The problem is that we need the return value to be in lower case and this is returning a intial capital letter on the string. So then the script does a bunch of IF statements to force the string to lower case. Like this: # RECODE THE 3-CHAR MONTH FROM INITIAL CAPS TO LOWER CASE TO MATCH TTMS # DIRECTORY NAMES ON THE SERVER if [ $MON = Jan ] then month=jan fi; if [ $MON = Feb ] then month=feb fi; ...more Is there a better way to force the string to be lowercase in the bourne shell? Thanks in advance! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|