![]() |
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 |
| string substitution | laxmi | Shell Programming and Scripting | 3 | 02-16-2008 06:11 AM |
| String Substitution | laxmi | UNIX for Advanced & Expert Users | 1 | 02-16-2008 06:08 AM |
| Sed - substitution for whole string | Scarlos | Shell Programming and Scripting | 4 | 07-12-2005 08:56 AM |
| String Substitution Question | goodrics | Shell Programming and Scripting | 3 | 07-24-2003 05:00 PM |
| Update text files in place (string substitution) ?? | kornshellmaven | UNIX for Dummies Questions & Answers | 1 | 07-17-2001 12:11 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sed String Substitution
Hi!
I've the following script code with an input parameter: sed 's/oldstring/$1/g' myfile > newfile (I launch it with comman line: $ MyShell newstring) Problem: the substituion doesn't work (oldstring becomes $1, instead of newstring). How could I solve this situation? Thanks, Paride |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|