bash
-
- Replace a string without sed
${VAR/STRING/REPLACEMENT_STRING}
example:
-
VAR test ="hallo@sinnlos"
${$test/@/#} results in "hallo#sinnlos"
-
VAR test ="hallo@sinnlos"
- Indirect assignment of variables
export "${VAR}"="$VAR2"
example:
-
var=sinnlos; bla=tests
export "${var}"="$bla"
# echo "$sinnlos"
# test
-
var=sinnlos; bla=tests
- Replace a string without sed
Wednesday, 30-Jun-2004 11:28:15 CEST