Tag Archives: bash

Checking the Stock Market from the Command Line

With all the financial trouble in the country I have been checking the market a lot lately, and I find it a little annoying to constantly switch to my web browser and refresh or check my dashboard or whatever. Since I spend a lot of time in a terminal, I put a function together, [...]

Handling whitespace in bash for loops

Tonight I was trying to cleanup my macports installation by uninstalling the packages that are no longer active. I decided to write a script to do this, instead of manually uninstalling them one by one. But in writing the script I came across something I had never seen and the google didn’t give [...]