Using nullglob and dotglob in bash scripts.

Use BASH nullglob To Verify *.c Files Exists or Not In a Directory has a nice explanation on nullglob and dotglob.

Photo Resizing

for i in *
do
mogrify $i -resize 640×480 i
done

Get your external IP address

$ echo -e \"GET /automation/n09230945.asp HTTP/1.0rnHost: whatismyip.comrn\" | nc whatismyip.com 80 | tail -n1

\"\"

by David Winterbottom (codeinthehole.com)

\"\"
\"\"

\"\"

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/7xln2n56mnk/get-your-external-ip-address

\"Reblog