Tools and Tricks wiki links
Mac OS Error Code Shell Script
Stupid Unix Commands I Always Forget
Easily CDing to Something in Library/Application Support
Here's the thing. You're looking to CD into Application Support, for whatever reason. You have to do this a lot, so you're looking for ways to automate it.
You could use a symlink, or you could use an environmental variable to do it. This tip uses the later.
In your .profile, set this up:
export APPSUPPORT="$HOME/Library/Application*/"
Open a new terminal window, and type
$ echo $APPSUPPORT /Users/USERNAME/Library/Application Support/ $ cd $APPSUPPORT $ pwd /Users/USERNAME/Library/Application Support/
Touching All Files in a directory tree (Recursively)
find . -type f -print0 | xargs -0 touch
pdksh tricks
Searching through history
In vi mode, one can navigate the search history by (in control mode) using ? to find things backwards. This is not a find-as-you-type search, so press return to find what should be found. When you press return the prompt's text will change to be the found line
For example:
$ uptime 1 minute $ (escape) ?up(return) <-- when you hit return this will be replaced with uptime
Executing last command
ksh doesn't have bash's !! command, but it does have the r command, which does the same thing.
(PD)KSH Resources
Screen Resources
http://blog.timc3.com/2008/01/02/fixing-the-screen-backspace-and-delete-key/
Development One Liners
Seeing names of different files between two source trees: diff -r -q -x .svn tree-one tree-two