ACPI administration advocacy advocacy opinion apache audio authentication bash calendar commandline cron database debian desktop development disk dvd emacs email exim files firefox firewall ftp fun grub hardware hardware html images installation ipod kde knoppix laptop latex mplayer multimedia mysql network nfs openoffice opinion opinion pdf perl php postgresql printing scripting scsi security shell sitenews slackware spam ssh subversion svk t23 t43 text thinkpad thunderbird time users windows wine wordpress xwindows xwindows
Say you have an output of a program and need to email it. It is easy to pipe it to the mail command. Take for example this:
cat file.txt | mail some@person.com
This sends the contents of file.txt to some@person.com. I find this far quicker than firing up Thunderbird and then copying and pasting the text in from an editor. This technique really comes into its own when you want to email the out of the program. For example, say you're developing something on one system and want to email the changes you've made to a colleague:
svk diff | mail my@colleague
This takes the changes you've made in the local repository and emails them to your colleague. This is quick and easy and something I'll be doing a lot more of in the future.