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
  • 10
    I see no reason whatsoever to convert this into a while loop. Commented Nov 2, 2017 at 10:06
  • 1
    I'm a Bash newbie and try to learn more about bash by practicing. I would be grateful if anyone suggests an alternative using while loop. Commented Nov 2, 2017 at 10:35