> Reply-To: scoug-help@scoug.com
> To: scoug-help@scoug.com
> Subject: SCOUG-Help: unzip toplevel directory only ?
> --------------------------------------------------------------------
>
> ............
>
> How do I unzip *only* the files in the top-level directory of a
> multi-level zip file?
Here is one way to do it:
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.
>
> For example, if the zip file contains
>
> *.txt (many files)
> DIR001\*.txt (many files)
> ... (many directories)
> DIR999\*.txt (many files)
>
> how do I unzip the file and *only* get the top-level *.txt files?
>
> - 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".
=====================================================
>> 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.