fork download
  1. #!/bin/bash
  2. s='iiiiiii
  3. OOO=dd=XXX
  4. uuuuuuu'
  5.  
  6. sed -E 's/^([^=]+=)(\w+)(=.*)$/echo "\1$(which \2)\3"/e' <<< "$s"
Success #stdin #stdout 0.01s 5260KB
stdin
Standard input is empty
stdout
iiiiiii
OOO=/usr/bin/dd=XXX
uuuuuuu