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.
You can use the following script to unzip/uncompress the zipped / compressed files Code: for zipfile in *.zip do unzip $zipfile rm -rf $zipfile done try this out