How to run Linux commands in parallel

preview_player
Показать описание
Here we perform linux commands in parallel. I show examples of running parallel commands for every line in a file and for multiple files. Parallel is necessary to speed up many bioinformatics workflows.

Edit: when appending to a file in parallel (very last example) it is best practice to move the carrots and output file outside the quotations.
Рекомендации по теме
Комментарии
Автор

Your older videos are also very helpful. Thank you for everything

ykoy
Автор

The very last example has a small but crucial mistake: The >> needs to be outside the ' s. Otherwise the appending may happen in parallel and thus racing conditions may occur. It is more visible if the command is 'echo {}-start; sleep 0.$RANDOM; echo {}-end'

oletange
visit shbcf.ru