in reply to How to find out a compressed file inside a script ?



UPDATE : Finally i got it by,
perl -MFile::Type -le 'print File::Type->new->checktype_filename("text +.gz")'

Thanks to the monks.