bash debug – log all executed commands

Whenever I am writing a script in perl or bash, I always wish that there was some way to have…

Continue Reading →

Print all environment variables, including hidden ones

Print all environment variables, including hidden ones 1for _a in {A..Z} {a..z};do _z=${!${_a}*};for _i in `eval echo "${_z}"`;do echo -e…

Continue Reading →

Verify all the paths in the PATH directory

Here is the command to test that all the directories in your path actually exist. (IFS=:;for p in $PATH; do…

Continue Reading →