![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to Convert Upper case to Lower case | grahambo2005 | Shell Programming and Scripting | 7 | 07-12-2009 10:15 AM |
| how to convert from upper to lower case | aoussenko | Shell Programming and Scripting | 5 | 06-03-2009 03:59 PM |
| how to convert value in a variable from upper case to lower case | manmeet | Shell Programming and Scripting | 2 | 11-13-2008 02:22 PM |
| Change Case UPPER-lower & lower - UPPER | rahulkav | Shell Programming and Scripting | 7 | 09-14-2008 03:50 AM |
| lower case to upper case string conversion in shell script | dchalavadi | UNIX for Dummies Questions & Answers | 3 | 05-29-2002 01:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
convert upper case to lower case in ascript
I have a package to install and the installation script which does it . The files/directories names in the script are all lower case but the actual package has everything in upper case - file names, directories . I don't want to rename directories and files in the package - it has a lot of them . But I can not use the script as it is - it does not recognize files names . What would be the easiest way to deal with this ???
Example script has command cp -f $var1/$var2/dirname_1/filename_1 ...... and the package has /../../DIRNAME_1/FILENAME_1 I roughly estimated that there's about 60 lines in the script that have the dir and filenames which would need to be converted. It's uses a /bin/sh script . |
|
||||
|
Hi DEVTAKH thanks for the reply , but I need a bit more than just using tr . What I essentially want is for the install script to be able to recognise the directories and file names which are all in Upper case, but in the script are written as lowercase . For example
Script has cp -f $var1/$var2/dirname_1/filename_1 ../../../ the package has /../DIRNAME_1/FILENAME_1 I do not want change the whole command just for the cp to find $var1/$var2/DIRNAME_1/FILENAME_1 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|