shbin: sh/sash scripted binary tools with minimal dependency to enhance the *nix sh/bash environment.
Step1: Copy shbin into /opt/shbin OR ~/.shbin
cp -rf shbin ~/.shbin
chmod a+x -R ~/.shbin
Step2: Copy all dotfiles in shdot into ~/
cp -rf shdot/.* ~/
Step3: . $HOME/.bash_profile
shbin version
shbin list
shbin help
shbin show
shbin ext
You may enable or disable extensions by running: shbin ext filedir dockerkt
shbin list do*
dorun: interactive bash runner
dorun mubiic/ubdeose:en_US1.0 bash "shbin -v;doimg"
dolsi: list all the images key info, check the usage using
shbin help dolsi
dollc: list all the containers key info
donsh: log into the running container without ssh using nesenter/exec
shbin show donsh
doclr: bulk remove the docker images using glob matching:
doclr mubiic/*
docls: doclr plus <none> images cleaning
dostc/dokic: stop/kill the running containers
dormi/dormc: remove images/containers by id or name
doget: bulk pull images from the docker registry/hub
The power lies in the cmd combinations like:
dorun debian:jessie bash "sleep 120"&
donsh $(dollc -ri debian:jessie)
Some utility functions come from online sources but I lost the record of the origins
due to many refactors before git tracking. Thanks for all the original authors.
shbin is suitable for sh/bash environment. It requires only sed, awk, grep, cut, tr, sort, head, tail, find and optionally curl [for pubip] etc.
Issues support are limited in bugfixes. New features requests might not be accepted.