Exit Wiki

On OS X and other unix variants, using the shell is sometimes the easiest way to get a Quick And Dirty task done.

Difference between single quotes and double quotes

echo "your path is $PATH"
echo 'your path is $PATH'

Will return

your path is /bin/:/sbin/....
your path is $PATH

Saving Information on remote servers to places where you can get at it (ie: progress on a task) Install the gist command line tool then:

 some_long_task | gist -p

and it will show up, as a private gist, on your My Gists

If statements

The standard if statement template is:

if [[ condition ]]; then
  something
fi

Comments:

Add comments by visiting: Shell Script Knowledge/Comments

Shell Script Knowledge (last edited 2009-08-21 13:23:06 by RyanWilcox)