English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have been able to copy last entry/file to file.txt with SSH command :-
cat filename.zip | gunzip -c >file.txt
How can I remove last entry/file and keep repeating? Else, how can I extract all files?

2007-05-02 23:10:15 · 2 answers · asked by drkchaudhry 1 in Computers & Internet Programming & Design

2 answers

It would help if you told us what Distro are you using.

I'm a bit rusty, but "cat filename.zip | gunzip -c >file.txt" just doesn't look right. Have you tried it without " >file.txt"? AND, try to extract the ZIP file to a folder on your desktop, without the pipe.

To get more info, in the command line, type: man gunzip (or SSH)

2007-05-02 23:37:01 · answer #1 · answered by ELfaGeek 7 · 0 0

Why are you directing the output right into a record? To extract the data do basically gunzip filename.zip. That assumes the record is a gzip record. If the record has a .zip extension then it could have been compress using yet another application. if so try: unzip filename.zip

2016-12-10 18:03:26 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers