如何使正则表达式根据用户输入更改目标变量?

时间:2019-07-03 20:34:13

标签: regex bash awk sed sh

我正在制作一个shell脚本,我想用sed替换这些代码行的目标变量。

'/configuring/*': {
  // use this if you're running service
  // target: 'cow',

  // use this if you're running service 
  // target: 'pig',

  // use this if you're running service 
  // target: 'crab',

  // use this if you want to point at 
  target: 'Moose',
  changeAnimal: true
},

0 个答案:

没有答案