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 18:15:43 PST8
From: leganii@surfree.com
Reply-To: scoug-help@scoug.com
To: scoug-help@scoug.com
Subject: SCOUG-Help: Re: 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.
=====================================================

>Date: Sun, 5 Jan 2003 11:29:10 PST8
>Sender: scoug-help-owner
>Reply-To: scoug-help@scoug.com
>From: Peter Skye
>To: scoug-help@scoug.com
>Subject: SCOUG-Help: unzip toplevel directory only ?
> __________________________________________________________________
>
>.........
>
>Peter asked:
>> How do I unzip *only* the files in the
>> top-level directory of a multi-level zip file?
>
> ........
>
>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.

That worked fine on my sytem.
Different versions of unzip?
Mine is version 5.50.
Example: unzip ttools.zip -x */*
Seems elegant, and apparently works with both pkunzip and unzip.

>
> .....
>
>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:
>>[50]
>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

Nothing happens when I tested for that - seems perfectly safe.

>(I've seen FAT files without a date or time). And dropping the -Z might
*************
Those never show up in the above.

>help (less output fields).

What the $%&(*&^ are you talking about?
The only thing smaller than 1 output field is none.
In which case it stops doing nothing.

>
>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

Yeah, I guess if you are using NetRexx the loop and maybe some other
stuff would have to be recoded.
I just rewrote the shebang line on my Linux copy of parse, and it seems
to work fine with object rexx, so add that to Classic OS/2 and Regina.

>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.

????????
They simply aren't part of the parse tool, only if you choose to use them.

>
>I don't have a port of xargs.
>
>Thanks, all.
>
>- Peter
--

Regards,
Dallas E. Legan II / leganii@surfree.com / dallasii@kincyb.com

Powered by......Lynx, the Internet at hyperkinetic speed.

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

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.