Every day, I spend most of my work hours at the OS X terminal. Consequently, I accumulated a few tips and tricks I would like to share with the readers. Selecting Text To select a word, double click on that word. The terminal is smart enough to discern when the period acts as a sentence […]
September 18, 2009
The Problem I want a quick and dirty way to parse command line from my bash script. For example: myscript.sh --file foo.txt --width 72 The Solution The method is truly quick and dirty, but before we dive right in, let’s make a few assumptions: Each flag must be followed by a value. That means –debug […]
September 13, 2009
The Problem I am writing script in Tcl, but want an easy and simple way to parse command line parameter. For example, the user might invoke my script as: tclsh myscript.tcl -server testserver15 -user testuser3 The Solution This is one way to solve the problem. It does not mean to be the only one, but […]
September 12, 2009
This tutorial solves the following problem: the user wants to print to a printer attached to another Mac. Open the System Preferences Click on the Apple menu at the top left corner of your screen, then click on "System Preferences" Open Print & Fax Locate and click on this icon Turn on Sharing (1) Click […]
September 10, 2009
The Problem Sometimes, I need a simple menu in bash, but I don’t want to spend a good deal of time coding for one. The Solution Bash has a built-in command called select which gets the job done. To demonstrate this command, I am going to write a short bash script. This script lists all […]
September 3, 2009
This is a follow-up to my previous post. The Problem The ls command in Redhat Enterprise Linux (RHEL) by default uses the dark blue to show directories. This color is hard to see, especially on laptops with dim screens. I would like an easy way to change that. The Solution The solution is similar to […]
September 2, 2009
I’m a PC Originally uploaded by haivu_ed Microsoft is sending me a subliminal message!
September 25, 2009
2