Archive for December, 2009

How to sum the sizes of files found by ‘find’

Sometimes you want to find the size of all files that match some criteria, for example: files older than N days, or files greater than N bytes, or files that have a certain extension. In this case, using du is not practical. Here is a simple awk one-liner that will sum the size of all [...]

Share

Spoofing MAC address under MacOSX Snow Leopard

Why If you travel a lot like me, you may find yourself in need to change the mac address of your gizmos to avoid paying multiple times for the same service. Many hotspot services (commonly found in hotels) require you to pay for an access code for each wireless device that you bring with you. [...]

Share