Archive for March, 2008

Get a Forward Delete key on your Mac Book with Double Command

Tuesday, March 4th, 2008

Since I switched to a Macbook Pro, I've felt the absence of the "Delete" key. It's not the same as the Backspace key even in text-based applications, let alone in other things such as a web browser. To the rescue comes Double Command, a Preference Pane add-in that will give ...

Listing files with the path in Bash

Saturday, March 1st, 2008

This little script will print a list of the current files in a directory, prefixed with the full path: #!/bin/sh curdir=`pwd` if [ $# -eq 1 ] then usrdir="$1" ls | xargs -I % echo `pwd`/% | sed -e s!$usrdir!! else ls | xargs -I % echo `pwd`/% fi You can optionally provide an initial part of the path to ...