Renaming file within zip archives

From: khoa nguyen (huu_khoa_nguyen_at_yahoo.com.au)
Date: 04/07/05


Date: 6 Apr 2005 17:50:04 -0700

Hi,

I would like to zip from stdin, e.g. through some pipe, into a zip
archive. When I unzip the file I would get "./-" as the unzipped file.
I'd like to unzip to some other logical name and not "./-".

For example,

[begin scenario]
% echo 'hello world' | zip > hello.zip
% unzip hello.zip
[end scenario]

unzipping hello.zip will produce a "./-" file.

Thanks in advance,
Khoa.



Relevant Pages

  • Reading Zip Files
    ... My scenario is like this ... I will get a zip file from MQ Messaging, i want to unzip that file and ... process it in BizTalk 2004. ...
    (microsoft.public.biztalk.general)
  • Renaming file within zip archives
    ... I would like to zip from stdin, e.g. through some pipe, into a zip ... When I unzip the file I would get "./-" as the unzipped file. ... [begin scenario] ...
    (comp.unix.programmer)
  • Renaming file within zip archives
    ... I would like to zip from stdin, e.g. through some pipe, into a zip ... When I unzip the file I would get "./-" as the unzipped file. ... [begin scenario] ...
    (comp.unix.shell)
  • Re: Help with a 2 gig file
    ... |>except that a) I don't know of a Unix utility to unzip Winzip files, ... |>sure the pipe will bomb out b/c of the file size and c) I don't know how to ... But will unzip write to stdout? ...
    (comp.unix.sco.misc)
  • Re: Want to know when a batch file is done
    ... proc CheckPipe pipe { ... This is because the [chan event] command just registers a command to be called when something interesting happens, and then returns immediately, allowing control to pass to the next command. ... In this case: launching the unzip process, and then cleaning up when it is done: ... proc LaunchUnzip txt { ...
    (comp.lang.tcl)