how to unzip File which has no extension


 
Thread Tools Search this Thread
Operating Systems Solaris how to unzip File which has no extension
# 1  
Old 11-26-2007
how to unzip File which has no extension

Hi experts,

I have files as you see which is in gzip format. How can i uncompress it using gunzip/gzip/uncompress?? The file has NO extension. Do i need to rename the file as *.Z /or other and then unzip the file.

bash-2.05$ file Files029999200711101618
Files029999200711101618: gzip compressed data - deflate method

//purple
# 2  
Old 11-26-2007
the rename is not nessesary... but if the file has the same name like the archive and you want to unzip it to the same directory... problem Smilie so a renmae to filename.gz should solve your problem.

hth,
DN2
# 3  
Old 11-26-2007
Can you do "cat myfile | gunzip "?
(But noting the above comment about overwriting the original!)
# 4  
Old 11-26-2007
unzip

Quote:
Originally Posted by DukeNuke2
the rename is not nessesary... but if the file has the same name like the archive and you want to unzip it to the same directory... problem Smilie
how to uncompress the files 'Files029999200711101618' in different directory not renaming it to *.gz??
# 5  
Old 11-26-2007
Try something like:
gunzip < Files029999200711101618 > /some/other/directory/some_output_file
# 6  
Old 11-26-2007
Quote:
Originally Posted by prowla
Can you do "cat myfile | gunzip "?
Not exactly:
gunzip -c myfile
This will write the result on the standard output...

( -c --stdout write on standard output, keep original files unchanged)

Quote:
Originally Posted by Perderabo
Try something like:
gunzip < Files029999200711101618 > /some/other/directory/some_output_file
So:
gunzip -c Files029999200711101618 > /some/other/directory/some_output_file
# 7  
Old 11-27-2007
Below is working-- many thanks.
gunzip -c Files029999200711101618 > /some/other/directory/Files029999200711101618

I have arround more than thousand GZIP files in directory. Could the expert guys provide me the shell script how to unzip those thousand files keeping the original filename unchanged.

//purple
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unzip a gz file

Please tell me the unix command how to unzip a gz file(say a qwe.gz) and the orginal gz file should remain intact. Thanks in advance (7 Replies)
Discussion started by: pranabpal
7 Replies

2. UNIX for Dummies Questions & Answers

Display the .csv extension files based on .done extension fine

Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory ... (2 Replies)
Discussion started by: girija.g6
2 Replies

3. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

4. UNIX for Dummies Questions & Answers

unzip single file in zip file to STDOUT

Hi, Does anyone know if there is an unzip command similar to tar -xOf $tarBall $fileInTarFile which will untar a single file in a tar ball to STDOUT ? I want to do the same but with a .zip (ZIP archive) file. - Andy ---------- Post updated at 05:56 PM ---------- Previous update... (0 Replies)
Discussion started by: andyatit
0 Replies

5. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

6. UNIX for Advanced & Expert Users

How can i unzip .gz extension file?

I have pulled a .gz file from UNIX to window. Is there way to unzip UNIX based file on window? Thanks advance. (9 Replies)
Discussion started by: J_ang
9 Replies

7. Shell Programming and Scripting

How to unzip the file

Hi, I have a file in the form of .zip in unix directory, now I want to unzip the file in unix environment. May I know how to unzip this file File name: cust.zip Thanks in Advance... Aswice (1 Reply)
Discussion started by: aswice
1 Replies

8. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

9. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

10. UNIX for Advanced & Expert Users

How to unzip a .zip file when

there is no unzip package present. (2 Replies)
Discussion started by: yogesh_powar
2 Replies
Login or Register to Ask a Question