jestrada101
Technical User
- Mar 28, 2003
- 332
Suppose I have a variable with stored data..
I want a script to change the data while stored in the variable... Is this possible?
Something like this...
mydata="John went to the store."
sed -e 's/store/mall/g' $mydata
echo $mydata
My output would be: John went to the mall.
Thanks for any help
je
I want a script to change the data while stored in the variable... Is this possible?
Something like this...
mydata="John went to the store."
sed -e 's/store/mall/g' $mydata
echo $mydata
My output would be: John went to the mall.
Thanks for any help
je