Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Unix (http://www.go4expert.com/forumdisplay.php?f=44)
-   -   How to unzip files from folder in shell script (ksh) (http://www.go4expert.com/showthread.php?t=23455)

Poonamol 1Oct2010 15:07

How to unzip files from folder in shell script (ksh)
 
Hi,

I have a folder (C:\shellprg\input\) containing .CSV, .zip, .gz files.
1] I want to find all .zip/.gz files from folder (C:\shellprg\input\).
2] unzip/uncompress files into the same folder (C:\shellprg\input\) through shell script.

I am using below commands for unzip files,
Code:


unzip <filename>
gzip -d <filename>

Could you please help me out.
Thanks in advance.:confused:


All times are GMT +5.5. The time now is 14:25.