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.

5
  • Add a shebang and then paste your script there: shellcheck.net Commented Jun 2, 2018 at 16:55
  • Depending on what you are doing and the overhead of running external programs like bc, it may be faster to just do everything serially in a language with proper floating-point support. Commented Jun 2, 2018 at 18:54
  • In my real code, I call an external (serial) program that runs for 2-3 minutes (instead of echo "react..."). Is there no way to get this done? Do I need to put the parallel stuff in an extra shell script? Commented Jun 2, 2018 at 20:59
  • What is it that you actually want to do? Commented Jun 2, 2018 at 21:52
  • Move LIMIT=25 further down by 2 lines, maybe? Commented Jun 3, 2018 at 9:05