Create a gist now

Instantly share code, notes, and snippets.

select and remove container with no name specified
#!/bin/bash
docker rm $(docker ps -a|grep -P "(?:admiring|adoring|affectionate|agitated|amazing|angry|awesome|blissful|boring|brave|clever|cocky|compassionate|competent|condescending|confident|cranky|dazzling|determined|distracted|dreamy|eager|ecstatic|elastic|elated|elegant|eloquent|epic|fervent|festive|flamboyant|focused|friendly|frosty|gallant|gifted|goofy|gracious|happy|hardcore|heuristic|hopeful|hungry|infallible|inspiring|jolly|jovial|keen|kind|laughing|loving|lucid|mystifying|modest|musing|naughty|nervous|nifty|nostalgic|objective|optimistic|peaceful|pedantic|pensive|practical|priceless|quirky|quizzical|relaxed|reverent|romantic|sad|serene|sharp|silly|sleepy|stoic|stupefied|suspicious|tender|thirsty|trusting|unruffled|upbeat|vibrant|vigilant|vigorous|wizardly|wonderful|xenodochial|youthful|zealous|zen)_(?:albattani|allen|almeida|agnesi|archimedes|ardinghelli|aryabhata|austin|babbage|banach|bardeen|bartik|bassi|beaver|bell|benz|father of Indian nuclear programme|bhabha|bhaskara|blackwell|bohr|booth|borg|bose|boyd|brahmagupta|brattain|brown|carson|chandrasekhar|shannon|clarke|colden|cori|cray|curran|curie|darwin|davinci|dijkstra|dubinsky|easley|edison|einstein|elion|engelbart|euclid|euler|fermat|fermi|feynman|franklin|galileo|Bill|gates|goldberg|goldstine|goldwasser|golick|goodall|haibt|hamilton|hawking|heisenberg|hermann|heyrovsky|hodgkin|hoover|debugging|hopper|hugle|hypatia|jang|jennings|jepsen|johnson|joliot|jones|kalam|kare|keller|khorana|kilby|kirch|The Art of Computer Programming|knuth|kowalevski|lalande|lamarr|lamport|leakey|leavitt|lewin|lichterman|liskov|lovelace|lumiere|mahavira|mayer|mccarthy|mcclintock|mclean|mcnulty|meitner|meninsky|mestorf|minsky|mirzakhani|morse|murdock|neumann|newton|nightingale|nobel|noether|northcutt|noyce|panini|pare|pasteur|payne|perlman|pike|poincare|poitras|ptolemy|raman|ramanujan|ride|montalcini|ritchie|roentgen|rosalind|saha|sammet|shaw|Steve|shirley|shockley|sinoussi|snyder|spence|stallman|stonebraker|swanson|swartz|swirles|tesla|thompson|torvalds|turing|varahamihira|visvesvaraya|volhard|wescoff|wiles|williams|wilson|wing|wozniak|wright|yalow|yonath)" |cut -c 1-13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment