XML editing inside a Perl script

前端 未结 1 1290
自闭症患者
自闭症患者 2021-01-29 13:43

I am trying to us the perl -pi -e to edit the a line in a xml file. If I run the perl -pi -e command from the command line it works fine, but once I put in my script and use the

相关标签:
1条回答
  • 2021-01-29 14:41

    You need to add quote marks around the argument you pass to -c.

    At the moment you have -c perl and then -pi is taken as another argument to su not perl.

    0 讨论(0)
提交回复
热议问题