RosettaCodeData/Task/Regular-expressions/UNIX-Shell/regular-expressions-3.sh

3 lines
82 B
Bash

modified=${s/~(E)$re/$repl}
echo "$modified" # I am the modified string