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.

3
  • great answer, covering many of the shortcomings in the original attempt Commented Sep 18, 2024 at 15:06
  • Thanks for the complete answer, and for the extra suggestions for improvement especially on the use of grep. Regarding the use of bash, I completely agree something like python would be better but for the time being, it is all about modifying an existing script rather than inventing and testing something completely new. Commented Sep 19, 2024 at 12:24
  • "No need for ` after a |, you can break the line on the |`." Huh... never knew that. Not sure If I'll remove my backslashes, though, since backslash proclaims continuation. Commented Sep 27, 2024 at 0:11