fork download
  1. #!/bin/bash
  2. sed 's/Method_A( \(.*\) );/\1.Method_B();/g' <<< 'Method_A( abc );' # ==> abc.Method_B();
  3. sed 's/Method_A( \(.*\) );/\1.Method_B();/g' <<< 'Method_A( m );' # ==> m.Method_B();
  4. sed 's/Method_A( \(.*\) );/\1.Method_B();/g' <<< 'Method_A( xyz123 );' # ==> xyz123.Method_B();
Success #stdin #stdout 0s 4488KB
stdin
Standard input is empty
stdout
abc.Method_B();
m.Method_B();
xyz123.Method_B();