Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend

« | »

unzip-nozipbomb

#!/bin/sh
## $HOME/bin/unzip-nozipbomb
## Written 2007 Hal Canary
## DTPD ##
for zipfile in "$@" ; do
    dir=$(basename "${zipfile}" .zip)
    if [ "${dir}" = "${zipfile}" ] ; then
	dir="${dir}.d"
    fi
    mkdir -p "${dir}"
    unzip -d "${dir}" "${zipfile}"
done

Hal Canary | Computers & Code | 2009-08-26 07:03:57 UTC
Permanent Link Comments Off | No Comments

Comments are closed.
Email me your comments — h3 at halcanary dot org.

Copyright 1997-2011 by Hal Canary.
mailto: h3 at halcanary dot org
http://halcanary.org