In my daily work I often find myself doing repetitive tasks, some simple others more advanced.
Here are some of my favorite aliases I use for some of the simple tasks.
#Listing my IP addresses in a format so that I can easily copy the IP address I need. ips='/sbin/ifconfig | grep "Link encap" -A1 | sed "s/.*inet addr://" | sed "s/ .*//"' #Listing targets in an ant build.xml catb='cat build.xml | grep -e".*target name.*"' #finding java files (often used in conjunction with grep to look in files) findjava='find . -type f | grep -e".*\.java$"' #finding log files findlogs='export log=$$;find . -type f | grep -e".*\.log$" >/tmp/$log ; find . -type f | grep -e".*\.log\.[0-9]*$" >>/tmp/$log ; cat /tmp/$log | sort ' #Grepping in history (eg 'hgrep scp') hgrep='history | grep -v hgrep | grep '