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*

4
  • See Why does my shell script choke on whitespace or other special characters? Commented Mar 16, 2016 at 1:14
  • Also Why is printf better than echo? Commented Mar 16, 2016 at 1:20
  • And by the way, I link people to those all the time; nothing personal! :D They're just crucial data for script writers. On another note, you don't need the g flag in your sed command when you're using an anchored regex. Commented Mar 16, 2016 at 1:22
  • Ha, I know, I just grabbed the sed invocation from the original post, I didn't give that part much thought! Commented Mar 16, 2016 at 1:24