Unix Programming - Sed

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > August 2005 > Sed





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Sed
Bob

2005-08-22, 8:49 pm

x="string"
foo= `$x |sed '"s/string/changed/g"'`

Why can't I get foo line to work I thing I have the quotes wrong but not
sure.

Thank-you


Chris McDonald

2005-08-22, 8:49 pm

"Bob" <bob_then@yahoo.com.au> writes:

>x="string"
>foo= `$x |sed '"s/string/changed/g"'`


>Why can't I get foo line to work I thing I have the quotes wrong but not
>sure.


Try foo= `echo $x |sed '"s/string/changed/g"'`

--
Chris.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com