Weelky Web Look: June 30, 2009

Links

Weelky Web Look: June 23, 2009

shell one-liners

Send multiple attachments using mailx

$ (uuencode foo.txt foo.txt; uuencode /etc/passwd passwd.txt) | mailx \
-s "Hello world!" test@domain.com

Recursively compare two directories and output their differences on a readable format

$ diff -urp /originaldirectory /modifieddirectory

Linux ,

Convert AVI to iPhone MP4

$ ffmpeg -i [source].avi -f mp4 -vcodec mpeg4 -b 250000 \
 -s 480?320 -acodec aac -ar 24000 -ab 64 -ac 2 [destination].mp4

Linux , ,

Convert “man page” to text file

Sometimes it is very useful to generate text file from man page for print purposes, etc. This is the command you can use:

$ man ls | col -b > ~/Desktop/man_ls.txt

Linux