[clue-tech] Re: LUNA: Script for Unzipping?

Joseph A. Nagy, Jr. jnagyjr at joseph-a-nagy-jr.us
Sat Apr 30 23:29:03 MDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 30, 2005 at 06:14:20PM -0600, David Anselmi wrote the following:
> Joseph A. Nagy, Jr. wrote:
> [...]
> >for i in `ls *zip`; do unzip "$i"; done
> 
> Gads no!  It's:
> 
> for i in *zip; do unzip "$i"; done
> 
> And realize that if *zip expands to a command line that's too long this 
> will fail.  (I tried to blow up bash on Linux recently and couldn't 
> (though I did run out of memory) but with ksh on Solaris 8 this is easy 
> to do.)
> 
> >That does the job admirably, now I just need to smack the heck out of the
> >unzip program (or the archive creators) for asking me, repeatedly, if I 
> >want
> >to overwrite txt files (I do) or rename ttf files (I do). Hehe. :p
> 
> How about -o?  (You do have the man page, don't you?)  And in case you 
> don't want to overwrite fonts you can use -d to put stuff in an out of 
> the way directory.
> 
> Dave

I do, that's why I didn't ask for help with that. I'm just not well versed
enough in writing bash scripts to do anything "fancy" or even "useful" with
it except to run other programs serielly that don't require my input (such
as updating awstats every half hour)

- -- 
Joseph A. Nagy Jr.
AIM: pres CTHULHU ICQ: 18115568
Yahoo: pagan_prince Jabber: DarkKnightRadick@(jabber.org|amessage.at)
Skype: jnagyjr01 PGP: 0xCF7EAA67
<http://www.joseph-a-nagy-jr.us> <http://www.jan-jr-ent.biz>
<http://games.joseph-a-nagy-ur.us>
'TIS AN ILL WIND THAT BLOWS NO MINDS
POEE CHAPLIN for the LEGION OF DYNAMIC DISCORD, McMinnville Chapter
Hail Eris! Hail Discord!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0-ecc0.1.6 (GNU/Linux)

iD8DBQFCdGkfoz/s6BFAjRwRAufHAJ9P1SZ/AhyRyKBX+Tym3kd80eMFoACgkTGn
UYANZC0keDbiyQAel5/us14=
=2J2A
-----END PGP SIGNATURE-----



More information about the clue-tech mailing list