Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • I tested your code in real-life example. There can be a problem with this mark "'" in the code. I provided the test case above. Commented Apr 26, 2014 at 6:44
  • you don't need -p and -n at the same time. As per the doc (perlrun): "To suppress printing use the -n switch. A -p overrides a -n switch." In your example, -000pe should be enough Commented Apr 26, 2014 at 8:07
  • @Masi the above code seems to work with your test case. What specific problem are you seeing? Commented Apr 26, 2014 at 8:13
  • @awk_FTW no, of course it's not needed, thanks. It was a leftover from an earlier version I tried with -lpe. Commented Apr 26, 2014 at 10:13
  • @Masi I don't see the problem. I tried with your updated example and it still works perfectly well. What is the issue you're having? Commented Apr 26, 2014 at 10:17