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*

8
  • Heh, nice edit. I was just about to say that it didn't work with the 0-9 argument. Would you mind explaining the code so I'm able to understand how it actually works? Commented Jun 18, 2015 at 1:10
  • @ViktorAhlström - I just fixed it again - it was one too few. Commented Jun 18, 2015 at 1:15
  • @ViktorAhlström - done now. Commented Jun 18, 2015 at 1:46
  • Thanks! I'm still relatively new to shell scripts and that was a really nice clear-cut explanation for me. Commented Jun 18, 2015 at 2:09
  • @ViktorAhlström - there are no bashisms in this. It will run as well - probably better - in dash. It's all standard, POSIX shell-script. Commented Jun 18, 2015 at 2:11