Skip to content

Instantly share code, notes, and snippets.

head -n 2 | tail -n 1
old()
{
command=$1
shift
$(which -a $command | head -n 2 | tail -n 1) $@
}
:w !sudo tee %
@sionide21
sionide21 / Rsync Backup
Created January 7, 2010 14:55
My home directory backup command
rsync -av --delete --exclude-from="$HOME/exclude.rsync" "$HOME" <server>:<backup dir>/