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.

6
  • 2
    How are you running multiple scripts at once? Commented Apr 27, 2018 at 13:42
  • 3
    Could something like function echo() { /bin/echo $PREFIX$*; } help you? Commented Apr 27, 2018 at 13:46
  • @Jesse_b by a parent script or something. The scripts are not depending on each other. So running in parallel saves some time. Commented Apr 27, 2018 at 14:37
  • @Philippos But this does not affect the command called in the script. Also, for example, [ x -eq 1 ] caused shell itself reporting error, which this kind of way could not help. Commented Apr 27, 2018 at 14:38
  • There is an example with timestamp too: gist.github.com/reduardo7/5d8443130495d3ad0e630eb344a37707 Commented Apr 29, 2023 at 20:30