How do you use sed from Perl?

前端 未结 10 592
渐次进展
渐次进展 2021-01-18 01:14

I know how to use sed with grep, but within Perl the below fails. How can one get sed to work within a Perl program?

c         


        
10条回答
  •  轮回少年
    2021-01-18 01:42

    Suggestion: Use Perl regular expressions and replacements instead of grep or sed.

    It's approximentally the same syntax, but more powerful. Also in the end it will be more efficient than invoking the extra sed process.

提交回复
热议问题