Re: unzipping files only and NOT directories.

From: Didier Casse (didierbe_at_sps.nus.edu.sg)
Date: 08/19/03

  • Next message: Gary Stainburn: "Re: unzipping files only and NOT directories."
    To: fred smith <fredex@fcshome.stoneham.ma.us>
    Date: Tue, 19 Aug 2003 18:26:03 +0800 (SGT)
    
    

    I know that but I simply failed to see the correct command in the
    manpages! That's why I asked. Must be
    tired after some long hours staring at the screen.

    Didier

    ---
    PhD student
    Singapore Synchrotron Light Source (SSLS)
    5 Research Link,
    Singapore 117603
    Email: slsbdfc@nus.edu.sg or didierbe@sps.nus.edu.sg
    Website: http://ssls.nus.edu.sg
    On Tue, 19 Aug 2003, fred smith wrote:
    > On Tue, Aug 19, 2003 at 12:09:41PM +0200, Michael Schwendt wrote:
    > > On Tue, 19 Aug 2003 17:04:56 +0800 (SGT), Didier Casse wrote:
    > > > My problem is as follows: I've a zip file like this:
    > > > -----------------------------------------------------
    > > > Archive:  photos.zip
    > > >   Length     Date   Time    Name
    > > >  --------    ----   ----    ----
    > > >    766669  08-19-03 16:21   Photos/CIMG0394.JPG
    > > >    770011  08-19-03 16:21   Photos/CIMG0395.JPG
    > > >    857205  08-19-03 16:21   Photos/CIMG0396.JPG
    > > >    180574  08-19-03 16:21   Photos/SleepingPups.jpg
    > > >  --------                   -------
    > > >   2574459                   4 files
    > > > ------------------------------------------------------
    > > > but I want to extract the JPG files only without extracting the Photos
    > > > directory with it. Anybody knows the command with unzip?
    > <snip>
    > > unzip -j photos.zip
    > 
    > To expand upon this (correct) answer:
    > 	man unzip
    > 	unzip
    > unzip without arguments gives you a full screen summary of its commands.
    > So you won't need to ask, next time,...
    > 
    > -- 
    > ---- Fred Smith -- fredex@fcshome.stoneham.ma.us -----------------------------
    >   "And he will be called Wonderful Counselor, Mighty God, Everlasting Father,
    >   Prince of Peace. Of the increase of his government there will be no end. He 
    >  will reign on David's throne and over his kingdom, establishing and upholding
    >       it with justice and righteousness from that time on and forever."
    > ------------------------------- Isaiah 9:7 (niv) ------------------------------
    > 
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Gary Stainburn: "Re: unzipping files only and NOT directories."

    Relevant Pages

    • Re: unzipping files only and NOT directories.
      ... >> but I want to extract the JPG files only without extracting the Photos ... Anybody knows the command with unzip? ...
      (RedHat)
    • Re: unzipping files only and NOT directories.
      ... >> but I want to extract the JPG files only without extracting the Photos ... Anybody knows the command with unzip? ...
      (RedHat)
    • Re: [opensuse] Ark and kde 4.1
      ... Tried that too still did not extract. ... Anyone know the ark command to ... ark doesn't need a "command", ... did you try to google for an app that will unzip a zip file? ...
      (SuSE)
    • Problems using Expect to parse a file
      ... I'm trying to write a script to automate a program called DeltaE, a powerful thermoacoustic design tool, and to extract performance data from the simulations it runs by parsing through its output files. ... Less, on the other hand, remains open upon reaching the end of a file until it receives the "q" command, so I tried writing a script to step through the file using that, as follows: ... The trouble now is, although manually executing the command "less -c data/1.out" at a tty functions just as you would expect it to, when Expect sends the exact same command as part of the spawn process, and running the script with exp_internal true, apparently none of the data sent to the display by less when started normally is being seen by Expect - all it seems to get is "No tags file\r\n", followed by eof and closure of Less - I'm afraid I haven't a clue what the "No tags file" statement means. ...
      (comp.lang.tcl)
    • Re: rename based on file name
      ... Unzip each zip to a folder based on location code in zip name. ... Rename the files to include yesterdays date. ... Target = Table ... Command = UnZipCommand1 Fname UnZipCommand2 Target ...
      (comp.lang.awk)

    Loading