8 May 2004 Leimy   » (Master)

This is pretty awesome for you OS X folks:


I was able to use this Finder plugin thingy to write a bash script that allows the tarring of many directories from finder with a few clicks.

here is the script:


# Tar directories.

while [ "$*" != "" ] do if [ -d "$1" ] then echo "tar cvfz $1.tgz -C `dirname $1` `basename $1`" tar cvfz $1.tgz -C `dirname $1` `basename $1` fi shift done

chmod u+x and stick it in ~/Library/Application\ Support/Big\ Cat\ Scripts/Files. Now select a bunch of directories and ctrl-click [right click] and find the scripts context menu and select whatever you named the above script.

It will echo what it's doing to the console log. If you don't want this behavior remove the echo line.

Saves me a bunch of time...


Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!