DEV Community

Discussion on: How to write Bash one-liners for cloning and managing GitHub and GitLab repositories

Collapse
 
flrichar profile image
Fred Richards • Edited

It uses the output of the command as an input source. $(ls) would have done the same thing... I like to think of it as performing the operation on a current set.

It doesn't look familiar because its a specific parallel command option, not a general bash option.

Another silly example of a clock-counter ... the -k flag says keep the order (so things don't happen out of order). Perform an echo operation on three sets.

parallel -k echo {1} {2} {3} ::: {0..12} ::: {0..5} ::: {0..9}