^first^second
!! =~ s/first/second/
$ echo pretty weirdpretty weird
$ ^pretty^veryecho very weirdvery weird
^first^second
" is equiv to "!! =~ s/first/second/
" (in like perl) bash scripting tips$ echo pretty weird
pretty weird
$ ^pretty^very
echo very weird
very weird