switch.sh 237 B

123456789101112131415161718
  1. #!/bin/bash
  2. for i in $(grep -r -l "localhost:3449" target/)
  3. do
  4. sed -i 's/localhost:3449/10.0.0.186:3449/g' $i
  5. done
  6. for i in $(grep -r -l "localhost:3449" resources/)
  7. do
  8. sed -i 's/localhost:3449/10.0.0.186:3449/g' $i
  9. done