Myopic Mania

Over one hundred years of intellectual discipline in the mathematical, chemical, and physical sciences culminates in this amazing device I hold in my hand; empowering me to instantly tweet across oceans and continents that viruses and vaccines are a hoax.

Why am I alive?

We long to be here for a purpose. Yet despite much self-deception, none is evident. The significance of our lives and our fragile planet is then determined only by our own wisdom and courage. We are the custodians of life’s meaning. If we crave some cosmic purpose, then let us find ourselves a worthy goal.

Carl Sagan

Shell String Split

Having some trouble with this operation, found that you can use string replacement syntax to also split a string to array:

NPM_VER=$(npm -v) # 6.12.1
NPM_VER=(${NPM_VER//./ }) # Split on '.' as delimiter

echo "${NPM_VER[0]}" # 6
echo "${NPM_VER[1]}" # 12
echo "${NPM_VER[2]}" # 1