Monday, April 22, 2013

how to untar files in directory


files=`ls /u01/oradata/day3/*.tar.gz`
for i in $files
do
gunzip < $i | tar xvf -
done