1

I am working with a read only file system through Putty SSH. I have lots of zip files which contain multiple directories. I want to read a .kml file stored within one of these sub-directories. Is there a way to do this?

I have accessed the list of files with unzip -l

2
unzip -p archive.zip the-file-name-here

From the unzip man page:

-p

extract files to pipe (stdout). Nothing but the file data is sent to stdout, and the files are always extracted in binary format, just as they are stored (no conversions).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.