![]() |
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 |
| 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 |
| read a variable character by character, substitute characters with something else | vipervenom25 | UNIX for Dummies Questions & Answers | 2 | 06-06-2008 03:18 PM |
| [csh] checking for specific character ranges in a variable | userix | Shell Programming and Scripting | 5 | 05-11-2008 07:56 AM |
| Removing character ' from a variable | sertansenturk | Shell Programming and Scripting | 3 | 04-19-2008 08:53 AM |
| Search in variable for character | rorey_breaker | Shell Programming and Scripting | 1 | 09-27-2007 07:05 AM |
| defining a variable as a number or character? | noobian | UNIX for Dummies Questions & Answers | 1 | 04-26-2005 08:19 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Quote:
I want to replace everythig after ResourceDIR= with the variable read during install. I want to specify that another parameter that need to be replace is MountFolderLive=/live/, /app-nfs/meta/relay and here only /app-nfs/meta/relay to be replaced with the variable read. Thanks Bianca Last edited by potro; 03-13-2008 at 05:45 AM.. |
|
|||||
|
Quote:
This works for my first parameter ResourceDIR but not for the second one: [root@skynet bianca]# cat aaaa [Basic Configuration] ResourceDIR=/app-nfs/meta/relay MountFolderLive=/live/, /app-nfs/meta/live For the second one /app-nfs/meta/live should be replaced with the read variable . sed -e "s|\(^MountFolderLive=/live/,\)\([0-9a-zA-Z\/\-]*$\)|\1${GS_MOUNT_FOLDER_META}|" aaaa > bbbb This doesn't work for this parameter. Thanks, Bianca |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|