Questions tagged [unzip]

Unzipping is uncompressing ZIP archives, the opposite of zipping.

2029 questions
51
votes
7 answers

How to unzip a piped zip file (from "wget -qO-")?

Any ideas on how to unzip a piped zip file like this: wget -qO- http://downloads.wordpress.org/plugin/akismet.2.5.3.zip I wished to unzip the file to a directory, like we used to do with a normal file: wget -qO-…
Roger
  • 8,286
  • 17
  • 59
  • 77
50
votes
5 answers

zcat won't unzip files properly

I need to unzip a compressed file on the fly in my program. It works when I try it on my own linux computer, but for some reason the school computers fail whenever I tell them to do it. To unzip I'm using the following command: zcat…
Zain Rizvi
  • 23,586
  • 22
  • 91
  • 133
48
votes
2 answers

Simple way to unzip a .zip file using zlib

Is there a simple example of how to unzip a .zip file and extract the files to a directory? I am currently using zlib, and while I understand that zlib does not directly deal with zip files, there seems to be several additional things in zlibs's…
judeclarke
  • 1,106
  • 5
  • 16
  • 31
46
votes
7 answers

gradle - download and unzip file from url

What would be the proper gradle way of downloading and unzipping the file from url (http)? If possible, I'd like to prevent re-downloading each time I run the task (in ant.get can be achieved by skipexisting: 'true'). My current solution would…
Peter Butkovic
  • 11,143
  • 10
  • 57
  • 81
44
votes
7 answers

easy way to unzip file

Is there a easy way to unzip file with Go? right now my code is: func Unzip(src, dest string) error { r, err := zip.OpenReader(src) if err != nil { return err } defer r.Close() for _, f := range r.File { rc, err…
Akshay Deep Giri
  • 3,139
  • 5
  • 25
  • 33
42
votes
2 answers

How to read from a zip file within zip file in Python?

I have a file that I want to read that is itself zipped within a zip archive. For example, parent.zip contains child.zip, which contains child.txt. I am having trouble reading child.zip. Can anyone correct my code? I assume that I need to create…
Michael Collinson
  • 519
  • 1
  • 5
  • 7
41
votes
5 answers

How can unrar a file with python

How can I extract a .zip or .rar file using Python?
Vahid Kharazi
  • 5,723
  • 17
  • 60
  • 103
40
votes
5 answers

Unzip all zipped files in a folder to that same folder using Python 2.7.5

I would like to write a simple script to iterate through all the files in a folder and unzip those that are zipped (.zip) to that same folder. For this project, I have a folder with nearly 100 zipped .las files and I'm hoping for an easy way to…
tpdance
  • 1,273
  • 1
  • 9
  • 13
39
votes
4 answers

How to zip and unzip the files?

How to zip and unzip the files which are all already in DDMS : data/data/mypackage/files/ I need a simple example for that. I've already search related to zip and unzip. But, no one example available for me. Can anyone tell some example. Advance…
user905216
38
votes
1 answer

unzip a tar.gz file?

I wish to download and open the following tar.gz file in R: http://s.wordpress.org/resources/survey/wp2011-survey.tar.gz Is there a command which can accomplish this?
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
38
votes
4 answers

Unpack inner zips in zip with Maven

I can unpack zip file via the maven-dependency plugin, but currently I have the problem that inside that zip file other zip files are include and I need to unpack them as well. How can I do this?
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
38
votes
1 answer

How to extract file from zip without maintaining directory structure in Python?

I'm trying to extract a specific file from a zip archive using python. In this case, extract an apk's icon from the apk itself. I am currently using with zipfile.ZipFile('/path/to/my_file.apk') as z: # extract /res/drawable/icon.png from apk to…
rcbevans
  • 7,101
  • 4
  • 30
  • 46
38
votes
2 answers

How to programmatically extract / unzip a .7z (7-zip) file with R

I'm trying to automate the extraction of a number of files compressed with 7-zip. I need to automate this process, because a) there are many years of data I'd like to unlock and b) I'd like to share my code with others and prevent them from…
Anthony Damico
  • 5,779
  • 7
  • 46
  • 77
37
votes
11 answers

How do I unzip a .zip file in google cloud storage?

How do I unzip a .zip file in Goolge Cloud Storage Bucket? (If we have some other tool like 'CloudBerry Explorer' for AWS, that will be great.)
Naaga A
  • 552
  • 1
  • 5
  • 13
37
votes
5 answers

How to check file size before opening?

How can I check the size of a file before I load it into R? For example: http://math.ucdenver.edu/RTutorial/titanic.txt I'd like to use the optimal command to open a file based on the file's size.
Rhodo
  • 1,234
  • 4
  • 19
  • 35