Wade Preston Shearer wrote:
I have another shell script question. I am trying to pass a script a string, replace a portion with something else, and then return the updated string.

I am getting an error trying to change "dick" to "harry" with the following:


for f in "$@"
do
    newString = $(echo $f | xargs sed -i -e "s/dick/harry/g")
    return newString
done
In bash try:
newParam = ${oldParam//dick/harry}


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to