SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 05 | January | 2003 ]

<< Previous Message << >> Next Message >>


Date: Sun, 5 Jan 2003 11:29:10 PST8
From: Peter Skye <pskye@peterskye.com >
Reply-To: scoug-help@scoug.com
To: scoug-help@scoug.com
Subject: SCOUG-Help: unzip toplevel directory only ?

Content Type: text/plain

=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================

Peter asked:
> How do I unzip *only* the files in the
> top-level directory of a multi-level zip file?

Gary Granat wrote:
>
> 1) Through some piping and editing, you could develop
> a batch file to extract your top-level *.txt files.
>
> 2) use an extraction-enabled file manager (like FM/2)

Hi Gary, thanks. Can FM/2 be scripted? I need to automate the
extraction.

Steven Levine wrote:
>
> I don't guarantee this, but try:
>
> unzip * -x *\*

Good thinking and nice try (and excellent disclaimer). But it didn't
work. I tried */* also.

But SUCCESS using your idea with PKZip!!

pkzip /extract /exclude=*\* somearchive.zip

works very nicely, thank you very much. :)))

You win a free lunch.

Dallas E. Legan wrote:
>
> unzip -Z -1 somefile.zip | find /V "/" | parse "US;'unzip somefile.zip 'US;"
> Where 'parse' is the utility described in my article at:
> http://www.scoug.com/os24u/2001/scoug010.parsetool.html
>
> If you have a EMX port of the UNIX 'xargs' command,
> you could probably use it inplace of the parse.

Okay, this is a good concept. And a good article, Dallas, I had missed
it.

For production work I'm worried that a field might occasionally be blank
(I've seen FAT files without a date or time). And dropping the -Z might
help (less output fields).

I think Rexx Tips & Tricks (rxtt* on Hobbes) has some additional info on
writing Rexx filters.

The difficulty with Rexx is the different flavors; I don't want the
thing to break if I run it on a machine which uses Object Rexx, or on a
machine with an early FixPak which doesn't include some of the Rexx
routines which were added later.

I don't have a port of xargs.

Thanks, all.

- Peter

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 05 | January | 2003 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.