Shell

Script of the week: linkdups

It's been a while since I've posted a script; life has been distracting lately. I also wanted to let this current script mature a lot more before sharing it, as it has the potential to be destructive. Use wisely!

It's name is linkdups, and it's a Python program to recursively walk through a directory tree and hard-links any files together whose contents match exactly. That means that if you have two files, each taking up 10 Kb, afterwards they will be linked to the same contents for a total savings of 10 Kb. Read More...
|

Applescript and UTF-8 arguments

Today's brief article describes how to pass UTF-8 arguments to an Applescript from the command-line. If you've ever tried saying "olé" to osascript before, you'll know what I mean. Read More...
|
© 2008 John Wiegley