--- In [email protected], "Michael Sullivan" <[EMAIL PROTECTED]>
wrote:
>
> I've been looking at sed and awk, and from what I've seen they work
> great with find/replace for files, but not for variables.  Is there
> anything for shell scripting that's similar to PHP's str_replace?
>

Let me answer my own question:


alpha="This is a test string in which the word \"test\" is replaced."

beta="${alpha/test/replace}"




To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to