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*

2
  • filename would be unset in the shell on the first line and you ought to get an error there when trying to redirect to nothing. Looping over the output of cat is ugly. You still have an empty pid variable defined for grep. I can't really see what this answer is trying to say. Commented Aug 1, 2018 at 8:28
  • Why you don't read lines with "for" Commented Aug 1, 2018 at 16:13