Skip to content

Instantly share code, notes, and snippets.

Created April 2, 2015 14:32
Show Gist options
  • Save anonymous/47023718d78d5c771fcb to your computer and use it in GitHub Desktop.
Save anonymous/47023718d78d5c771fcb to your computer and use it in GitHub Desktop.
92464* seq 1 10
92465* seq 1 10 | parallel echo
92467* seq 1 10 | parallel echo | ag '[135]'
92468* seq -w 001 010
92469* seq -w 001 010 | parallel --dryrun ssh bid{}.smq.mgnt.cc 'yum info kernel'
92470* seq -w 001 010 | parallel --dryrun ssh bid{}.smq.mgnt.cc "'yum info kernel'"
92471* seq -w 001 010 | parallel ssh bid{}.smq.mgnt.cc "'yum info kernel'"
92473* seq -w 001 010 | parallel ssh bid{}.smq.mgnt.cc "'yum info kernel'"
92474* seq -w 001 010 | parallel ssh bid{}.smq.mgnt.cc date
92475* seq -w 001 010 | parallel --tag ssh bid{}.smq.mgnt.cc date
92476* seq -w 001 010 | parallel --tag -k ssh bid{}.smq.mgnt.cc date
92478* cd Desktop
92479* ls
92480* vim commands
92481* cat commands | parallel
92482* cat commands | parallel --tag
92483* docker ps
92484* docker ps -a
92485* docker ps -a | tail -n +2
92486* docker ps -a | tail -n +2 | awk '{ print $1 }'
92487* docker ps -a | tail -n +2 | awk '{ print $1 }' | parallel -X docker rm
92488* docker images
92489* docker images | ag none | awk ' { print $3 }' | parallel --dryrun -X docker rmi
92490* docker images | ag none | awk ' { print $3 }'
92491* parallel echo ::: A B C D
92492* parallel echo ::: A B C D ::: 1 2 3 4
92493* parallel echo ::: A B C D ::: 1 2 3 4 ::: X Y Z
92494* parallel --xapply echo ::: A B C D ::: 1 2 3 4 ::: X Y Z
92495* parallel -k --xapply echo ::: A B C D ::: 1 2 3 4 ::: X Y Z
92496* parallel aws s3 ls s3://com.domdex.log/2015/03/{1}/{2} ::: 02 03 ::: $(seq 1 10)
92497* parallel --tag aws s3 ls s3://com.domdex.log/2015/03/{1}/{2} ::: 02 03 ::: $(seq -w 01 10)
92498* parallel --tag aws s3 ls s3://com.domdex.log/2015/03/{1}/{2}/ ::: 02 03 ::: $(seq -w 01 10)
92499* which logs
92500* ls
92501* rm commands
92502* ls
92503* seq 10 40 | parallel --tmux 'echo start {}; sleep {}; echo done {}'
92504* tmux attach -t p69615
92505* seq -w 001 010 | parallel --tmux ssh bid{}.smq.mgnt.cc "'yum info kernel'"
92506* tmux attach -t p70402
92508* tmux attach -t p70402
92509* seq -w 001 010 | parallel --tmux 'ssh bid{}.smq.mgnt.cc "''yum info kernel''"; sleep 10'
92510* tmux attach -t p70740
92511* seq -w 001 010 | parallel --tmux 'ssh bid{}.smq.mgnt.cc "yum info kernel"; sleep 10'
92512* tmux attach -t p71031
92514* tmux attach -t p71031
92516* man parallel_tutorial
92517* man parallel
92518* parallel --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment