![]() |
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 |
| substituting | neyo | Shell Programming and Scripting | 1 | 03-08-2008 10:08 AM |
| Perl: finding pattern and substituting | hkjang | Shell Programming and Scripting | 1 | 03-03-2008 09:07 PM |
| substituting a long line in a file | neyo | Shell Programming and Scripting | 4 | 03-03-2008 06:16 AM |
| Substituting variable with current time | jhansrod | Shell Programming and Scripting | 4 | 11-20-2005 08:20 PM |
| substituting shell variables | suds19 | Shell Programming and Scripting | 1 | 10-16-2002 08:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Substituting with value of variable in Sed
Hi,
I have a program in which i have to substitute a TAG in a file with the value of a variable. Code Snippet: ---------------- myvar=1234 sed 's/_TAG_/$myvar/' infile outfile When I run this command, the _TAG_ in the "infile" is substituted with "$myvar" but NOT the value "1234" as desired by me. Is there anyway to do it?? Thanks, Jyoti |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|