Skip to content

Instantly share code, notes, and snippets.

@bergie
bergie / README.md
Created May 18, 2011 11:33
Falsy Values tutorials
#!/bin/bash
#
# Links files in this directory to the current users home directory.
#
# If the link already exists the file will be skipped unless the -f flag is given.
real_path () {
_=`pwd`
[ -d $DIR ] && DIR=$1
[ -f $DIR ] && DIR=`dirname $1`