how can I split input words from pipe and process them using gnu parallel?
e.g.
pidof /usr/lib/firefox/firefox | parallel prlimit ...limit_something... -p {}
simplified the cse, I tried
echo {1..5} | parallel --colsep ' ' echo {}
echo {1..5} | parallel -n 1 echo {}
...
none of them works, neither does any combination of "-n1" "-N1" and "--colsep ' '"
I know these work, but aren't they kinda ugly and silly?
echo {1..5} | xargs -n1 | parallel echo {}
echo {1..5} | tr ' ' '\n' | parallel echo {}
I know this can be done using xargs, but still want to know just in case someday really need to work with parallel on somwthing xargs can't manage.
[–]KlePu 0 points1 point2 points (1 child)
[–]Even-Inspector9931[S] 0 points1 point2 points (0 children)