Steve Kemp wrote:
> Where unpack-all.sh looks like this:
>
> #!/bin/sh
>
> dir=$1;
> echo "Extracting in $dir"
>
> # Order is important to handle .tar.gz files properly
> # or .tar.bz2.
> find $dir -name '*.gz' -exec gunzip \{\} \;
> find $dir -name '*.bz2' -exec bunzip2 \{\} \;
> find $dir -name '*.tar' -exec tar xf \{\} \;
You're missing .tgz and .zip if I'm not mistaken.
Both variants seem to exist in Debian source packages.
Regards,
Joey
--
Long noun chains don't automatically imply security. -- Bruce Schneier
|