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

Greg Knaddison greg.knaddison at gmail.com
Sat Apr 30 12:48:48 MDT 2005


On 4/30/05, Joseph A. Nagy, Jr. <jnagyjr at joseph-a-nagy-jr.us> wrote:
> 
> for i in `ls *zip`; do unzip "$i"; done
> 
> 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
> 

It is open source...you could just change it and contribute it back
rather than getting upset.

If you can't or don't want to hack the source, you can use
perl::expect and it's ilk to handle these kinds of interaction and
continuously saying "y" to a prompt.

Greg



More information about the clue-tech mailing list