![]() |
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 |
| 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 |
| substitution | supercbw | Shell Programming and Scripting | 1 | 06-07-2002 03:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I know we can substitute a string using sed but how?
For example: sed 's/(old variable)/(new variable)/ details.dat Am I suppose to put $old variable or whatever? Because I tried many times, it didnt work by putting $old variable. Am I suppose to enclose it with "" or ''? Please help |
|
||||
|
Re: Substitution using sed
Quote:
should be sed 's/(old variable)/(new variable)/' details.dat |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|