Linux/Basic commands/parallel
< Linux < Basic commands
parallel[1] allows the user to execute shell scripts or commands in parallel.
Activities
Basic
- Execute a command in parallel by ssh in MACHINE1 and MACHINE2 using parallel
- Read stackexchange questions about gnu-parallel: https://unix.stackexchange.com/questions/tagged/gnu-parallel?tab=votes&pagesize=50
- Install parallel in macOS:
brew install parallelcan conflict withbrew install moreutils
Intermediate
- Review different parallel options such as:
--keep-orderor-kwhich keep order in the output. Do not affect order of execution. - Update all your git repositories in a directory in macOS using parallel:
ls | parallel git -C {} fetch
See also
- xargs
- moreutils package