# This includes all the bash aliases and functions discussed in the article alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias p=pushd alias m=more alias h=history function check() { typeset -f $1 if [[ $? == 0 ]] then return 0; fi alias $1 } function datex() { perl -le "print scalar localtime $1" } function dategmt() { perl -le "print scalar gmtime $1" } # findx : find findx() { if [ -n "$3" ] then find "$1" -name "*.$2" | xargs grep "$3" | more elif [ -n "$2" ] then find . -name "*.$1" | xargs grep "$2" | more elif [ -n "$1" ] then find . -name "*.h" | xargs grep "$1" | more else echo "Usage:" echo " findx " echo " findx " echo " findx " fi } # find a process quickly function psx() { ps auxwww | grep $1 | more }