![]() |
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 |
| Need help in substitution!!!! | uLearner | UNIX for Dummies Questions & Answers | 3 | 03-06-2008 07:21 PM |
| AWK substitution | klut | Shell Programming and Scripting | 4 | 01-15-2008 11:26 AM |
| Bad Substitution | D_Redd74 | Shell Programming and Scripting | 3 | 02-07-2007 05:48 PM |
| ksh substitution | solea | Shell Programming and Scripting | 2 | 08-09-2004 05:30 AM |
| sed substitution | jo_aze | UNIX for Dummies Questions & Answers | 3 | 06-23-2002 09:32 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
substitution
I am trying to substituted a variable to a file using sed. However, the value of that variable is not being substituted. Here is an example of my code.
lf=' ' v_whole="${1} ${2} ${3} $lf" cp ${IPPDIR}/ctl/fax_sub_text_a.${4}.${5}.txt ${IPPDIR}/ctl/testfax.${4}.${5}.txt sed 's/selected/${v_whole}/' ${IPPDIR}/ctl/testfax.${4}.${5}.txt cat ${IPPDIR}/ctl/fax_sub_text_b.txt >> ${IPPDIR}/ctl/testfax.${4}.${5}.txt return 0 Please assist |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|