Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Created July 2, 2020 21:04
Show Gist options
  • Save gmolveau/14804d54ad2ec0f18cf6bbfc661cb426 to your computer and use it in GitHub Desktop.
Save gmolveau/14804d54ad2ec0f18cf6bbfc661cb426 to your computer and use it in GitHub Desktop.
todo parallel commands
cat urls.txt | xargs youtube-mp4 {}
cat urls.txt | xargs zsh -c 'youtube-mp4 {}'
cat urls.txt | xargs $functions[youtube-mp4] {}
cat urls.txt | xargs zsh -c '$functions[youtube-mp4] {}'
cat urls.txt | parallel curl http://example.com/item/{}.tar ">" {}.tar
cat urls.txt | parallel youtube-mp4 {}
cat urls.txt | env_parallel youtube-mp4 {}
export -f youtube-mp4
cat urls.txt | xargs youtube-mp4 {}
cat urls.txt | while read url; do youtube-mp4 $url; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment