Validate Zip file

Hi all,

How to check if the input file is zip file, If yes, validate the version of gzip utility

Use the -t option.

gzip -t filename should return 0 exit status if it is a valid zip file