How to run command or code in parallel in bash shell under Linux or Unix

https://www.cyberciti.biz/faq/how-to-run-command-or-code-in-parallel-in-bash-shell-under-linux-or-unix/

From nixCraft

42 points · 15 comments · view on lemmy.world

15 Comments

superbirra@lemmy.world · 6 pts · 2y

xargs section is missing

mhz@lemm.ee · 5 pts · 2y (2 replies)
PipedLinkBot@feddit.rocks · 1 pts · 2y

Here is an alternative Piped link(s):

https://piped.video/playlist?list=PLT98CRl2KxKGiyV1u6wHDV8VwcQdzfuKe&si

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

superbirra@lemmy.world · -1 pts · 2y

mmh yeah... but no.

gnuplusmatt@reddthat.com · 4 pts · 2y (1 reply)

Ctrl + z

Bg

superbirra@lemmy.world · -2 pts · 2y

lol no

db2@sopuli.xyz · -20 pts · 2y (8 replies)

Why would you make a one line command in to a function 🤣

WalrusByte@lemmy.world · 17 pts · 2y (4 replies)

It's just a proof of concept. They wanted to keep it clean and easy to read while still showing off how to run the function in the background

db2@sopuli.xyz · -22 pts · 2y (3 replies)

Adding three extra lines to call a single command makes it clean? Remind me not to hire you.

eager_eagle@lemmy.world · 24 pts · 2y

only a masochist would want to work with anyone this dense

cashews_best_nut@lemmy.world · 10 pts · 2y (1 reply)

What's the point in commenting just to be a dick head?

db2@sopuli.xyz · -6 pts · 2y

You tell me.

MonkderZweite@feddit.ch · 3 pts · 2y (1 reply)

Repeated usage.

db2@sopuli.xyz · 1 pts · 2y

It's only called once.

sebsch@discuss.tchncs.de · 2 pts · 2y

Readability counts, toxic comments .. not sure