Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
penguin_booze
on Nov 24, 2021
|
parent
|
context
|
favorite
| on:
Bash patterns I use weekly
If I find myself running a set of commands in parallel, I'd keep a cheap Makefile around: individual commands I want to run in parallel will be written as phony targets:
all: cmd1 cmd2 cmd1: sleep 5 cmd2: sleep 10
And then
make -j[n]
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: