@count=`find dir_name -name *.tar`; foreach $cnt(@count){ system("tar -xf dir_name/$cnt"); }