Browsing All Posts published on »September, 2009«

Mac OS X Bag of Tips

September 25, 2009

2

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 […]

Quick and Dirty Way to Parse Command Line in a Bash Script

September 18, 2009

3

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 […]

Parse Command Line in a Tcl Script

September 13, 2009

1

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 […]

Share Your Printer in Snow Leopard – How To

September 12, 2009

0

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 […]

Simple Menu with Bash’s Select Command

September 10, 2009

5

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 […]

Changing Directory Listing (ls) in RHEL

September 3, 2009

0

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 […]

I’m a PC – A Subliminal Message

September 2, 2009

0

I’m a PC Originally uploaded by haivu_ed Microsoft is sending me a subliminal message!

Follow

Get every new post delivered to your Inbox.

Join 36 other followers