How do I recover zipped files????

I made the mistake of reading the manual on gzip and then following it without thinking! It said that this was a good thing to do:
cat file1 file2 | gzip > foo.gz
(do a man gzip if you don't believe me!).
So, I've done just that and I now have a compressed archive with 30 files in it. When I decompress it it unpacks it into one big archive file. Most of the files are jpegs - if I try to open it with a graphics program it sees the first jpeg and ignores the rest.
What do I need to do to unpack all the files properly>

I wonder. You can use 'cut' to slice files up into fixed sized chunks. Just as you can use 'col' to slice out fixed sized columns. However, if you know what the delimiters are, you can slice things into different sized columns with 'col'.
All I'm looking for is something similar to a variable width column slicer. Presumably all .jpg, .mp3 and other modern files end with some sort of checksum. Isn't it possible to cut them at the checksums? Is there a utility somewhere that does this?
I'd like to be able to pipe the file to imagebrowser, or similar - if it could read from a pipe, then it could bite off .jpegs as it recognised them just as easily. Is there some way of telling it that there is a concatenated file on the way?

Similar Messages

  • I downloaded an Adobe file from my email but cannot find it on my hard drive or in recycle bin - it's in downloads but am unable to open from downloads - how can I recover the file?

    I downloaded an Adobe file from my email (service provider is MWeb) but now cannot find it on my hard drive and it's not in the recycle bin. It does, however, appear in Firefox downloads but I'm unable to open it from there. How can I recover the file?

    Thanks Rob.
    I actually had no clue what the core problem was caused by. So it's Windows itself...that helps some.
    I'll resubmit there. It might actually have saved time for it to simply have been moved to there instead of off-topic, though I suppose you have to follow protocol.

  • How can i recover deleted files from my mac book

    how can i recover deleted files from my mac book

    Check out software like Data Rescue 3 (and you need an external drive to recover to)

  • How to insert a ZIP file in the message body and display it as icons

    how to attach an ZIP file as an inline attachment. whether its possible in java mail.

    Stop asking the same thing over and over.
    Keep the discussion in your original thread.

  • How to open a zip-file in Bridge for PC?

    How to open a zip-file in Bridge for PC?

    I think it's built in, just double click on it and it should open with Archive Utility. I dunno, maybe Unrar X might work for you>
    JB

  • How do I recover lost files off my external WD Passport hard drive with Time Machine?

    I have been backing up my Macbook Pro with Time Machine and my Western Digital Passport since May 2010. I accidentally deleted my music in February of 2011, but had backed it up with Time Machine. Now when I try to go back and recover the files in Time Machine, they are gone. Nothing is available past June 2011. How do I recover those files?

    About TM "Backup Drive is Full"
    Alert TM only deletes older files if they have been deleted from the source and when TM needs space on the backup drive for a new incremental backup. Time Machine "thins" it's backups; hourly backups over 24 hours old, except the first of the day; those "daily" backups over 30 days old, except the first of the week. The weeklies are kept as long as there's room.
    So, how long a backup file remains depends on how long it was on your Mac before being deleted, assuming you do at least one backup per day. If it was there for at least 24 hours, it will be kept for at least a month. If it was there for at least a week, it will be kept as long as there's room.
    Note, that on a Time Capsule the sparsebundle grows in size as needed, but doesn't shrink. Thus, from the user's view of the TC it appears that no space has been freed, although there may be space in the sparsebundle.
    Once TM has found it cannot free up enough space for a new backup it reports the disk is full. You can either erase the backup drive and start your backups anew or replace the drive with a larger drive.

  • How to store the zip file in oracle table?

    hi,
    How to store the zip file in oracle table ?
    is it possible to unzip and read the file ?
    Thanks
    Rangan S

    SQL> DESC BLOB_TABLE;
    Name Type Nullable Default Comments
    A INTEGER Y
    B BLOB Y
    SQL> INSERT INTO BLOB_TABLE VALUES(5,BLOB('MWDIR_TST','TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,BLOB('MWDIR_TST','TEST.ZIP'))
    ORA-00904: "BLOB": invalid identifier
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('MWDIR_TST','TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,('MWDIR_TST','TEST.ZIP'))
    ORA-00907: missing right parenthesis
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'))
    ORA-01465: invalid hex number
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'));

  • How to email a .zip file attachment from PC

    Hi,
    Please, let me know how to email a .zip file attachment from Presentation Server.
    Thanks,
    Madhuri.

    Hi,
    try fm SO_DOCUMENT_SEND_API1
    it's well documented (look with SE37)
    and look here:
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    regards Andreas

  • How do I recover a file what was written in the 'notes' app that I have accidentally deleted?

    how do I recover a file what was written in the 'notes' app that I have accidentally deleted?

    If you have an iTunes backup or iCloud backup containing that note you can restore from that backup.
    If you have no backups the note is gone.

  • How to check & unzip zip file using java

    Dear friends
    How to check & unzip zip file using java, I have some files which are pkzip or some other zip I want to find out the type of ZIp & then I want to unzip these files, pls guide me
    thanks

    How to check & unzip zip file using java, I have
    ve some files which are pkzip or some other zip I
    want to find out the type of ZIp & then I want to
    unzip these files, pls guide meWhat do you mean "other zip"? Either they're zip archives or not, there are no different types.

  • My 80 GB classic won't read the files I have synced up to it over the past 4 years, but it still shows that the files are still in there somewhere. How can I recover those files?

    I manually manage my music on my iTunes library. Once I have it downloaded on my laptop, then click and drag it to my iPod, I delete the files from my computer to save memory space. So I basically don't have ANY back-ups to over half of the music that was on my iPod. The other week I did what I usually do to add music to my iPod, but once I disconnected it fro  my computer, my iPod said there was no music, movies, or anything on there. If you highlight over the Settings it reads that there are still 60 GB of space free out of 80 GB. How can I recover those files that are clearly still on my disk without erasing everything I installed into it?  

    In my Computer, click the  iPod icon ->Properties->Tools->Error Checking
    Click Check Now.
    If it doesn't help, you have to use 3rd Party apps to recover these lost files, as the iPod filesystem got corrupted.
    iPodAccess http://www.findleydesigns.com Mac/Windows,
    or refer to this earlier posts by Limnos
    Good Luck!

  • I was updating my iphone ios suddenly battery was drain and itunes logo appears, how can i recover my file back? does anyone can help me...

    i was updating my iphone ios suddenly battery was drain and itunes logo appears, how can i recover my file back? does anyone can help me...

    Was your phone jailbroken?

  • I accidentally deleted some files from iCloud, how do I recover the files if I do not have other backup or in time machine

    I accidentally deleted some files from iCloud, how do I recover the files if I do not have other backup or in time machine

    You don't.

  • How to append to zip files

    I would like to know how to append to a zip file, I know how to write a zip file and I can put as many entries in the first time but if I run my program again and try to add a file to the same zip file it erases what was already in it. I use ZipOutputStream(new FileOutputStream), I have tried the FileOutputStream append but it does not seem to work for zip files, I have tried RandomAccessFile on my zip file but that just seems to add the bytes to the file that already in the zip file, and makes the file unopenable, corrupt. If you can help, please tell me how.

    You actually have to open the previous zipped file, read it's entries and their data and then rewrite a new zip file with these entries and their data. You can then delete your first file and rename the new one so the effect is that you have "appended" zip files to the existing archive.
    Here is an example which I pieced together from a larger bit of code that I have. This would need to be in a try/catch but this should give you a start.
    /** This method adds a new file to an existing zip file. It * includes all the zipped entries previously written.
    * @param file The old zip archive
    * @param filename The name of the file to be Added
    * @param data The data to go into the zipped file
    * NOTE: This method will write a new file and data to an archive, to
    * write an existing file, we must first read the data frm the file,
    * then you could call this method.
    public void addToArchive(File file, String filename, String data)
         ZipOutputStream zipOutput = null;
    ZipFile zipFile = null;
    Enumeration zippedFiles = null;
    ZipEntry currEntry = null;
    ZipEntry entry = null;
    zipFile = new ZipFile( file.getAbsolutePath() );
         //get an enumeration of all existing entries
    zippedFiles = zipFile.entries();
         //create your output zip file
    zipOutput = new ZipOutputStream( new FileOutputStream ( new File( "NEW" + file.getAbsolutePath() ) ) );
    //Get all the data out of the previously zipped files and write it to a new ZipEntry to go into a new file archive
    while (zippedFiles.hasMoreElements())
    //Retrieve entry of existing files
    currEntry = (ZipEntry)zippedFiles.nextElement();
    //Read data from existing file
    BufferedReader reader = new BufferedReader( new InputStreamReader( zipFile.getInputStream( currEntry ) ) );
    String currentLine = null;
    StringBuffer buffer = new StringBuffer();
    while( (currentLine = reader.readLine() ) != null )
    buffer.append( currentLine);
    //Commit the data
    zipOutput.putNextEntry(new ZipEntry(currEntry.getName()) ) ;
    zipOutput.write (buffer.toString().getBytes() );
    zipOutput.flush();
    zipOutput.closeEntry();
    //Close the old zip file
    zipFile.close();
    //Write the 'new' file to the archive, commit, and close
    entry = new ZipEntry( newFileEntryName );
    zipOutput.putNextEntry( entry );
    zipOutput.write( data.getBytes() );
    zipOutput.flush();
    zipOutput.closeEntry();
    zipOutput.close();
         //delete the old file and rename the new one
    File toBeDeleted = new File ( file.getAbsolutePath() );
    toBeDeleted.delete();
         File toBeRenamed = new File ( "NEW" + file.getAbsolutePath() );
    toBeRenamed.rename( file );
    Like I said I haven't tested this code as it is here but hopefully it can help. Good luck.

  • Truecrypt volume is empty, but the volume was never deleted. How do I recover the files (I know the password to the Truecrypt volume)?

    Earlier when I went to access my truecrypt password encrypted volume, it showed that it was empty, and it contained 0 files. I never deleted the files and I am the only person with the password.
    I suspect it may be because (1) I tried making a password protected folder on disk utility or (2) tried to setup time machine and didn't quite work.
    My question is: is it possible to recover the files, if so, how can I recover the files. I've tried manually powering the computer off, restarting the computer, reinstalling truecrpt.
    Please help, I have many treasured pictures on the volume.

    Hi,
    DPM do not care about the Source File has changed or deleted, so SCDPM does not know if a File has been changed or is deleted.
    So there is now known way to archive your Goal.
    I can imaging that you can archive this Goal with a Powershelgl Script, but would be not this easy
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

Maybe you are looking for

  • How do you create the 'cream pop-up info text boxes' that appear when you hover mouse over?

    Hi people, I really need to know how you create the 'cream pop-up info text boxes' that appear when you hover your mouse over an object on a webpage (and often in any program e.g. Photoshop) for more than a second. I need to know because the logo on

  • Crawl Problems in H.264

    Greetings. I just exported a 5-minute sequence from HDV 1080i to H.264 (not with Compressor). The .mov file when played back has problems. The images sometime move clumsily across the screen. The crawl portions, which contain English text in Helvetic

  • Bluetooth has just stopped working

    Here's the background information: 1. I've been working with a Mighty Mouse via a D-Link DBT-120 Nodule since the MM came out and everything was fine. 2. Spilled orange juice on it and got a new one. 3. New one worked for about three weeks and then j

  • SQL: does if/else work as a query or only in a SP?

    I'd like to insert a record if it doesn't exist or UPDATE it if it does. I'm doing this through a query via my app: IF EXISTS (SELECT siteID FROM weSiteMenusXML WHERE siteID = 1) INSERT INTO weSiteMenusXML(siteID) VALUES (1) ELSE UPDATE weSiteMenusXM

  • Convert byte[] into int

    Hey! How to convert a byte vector to an int? Byte[] to int? Thanks Mikael