Conversion of .zip to .tar.Z format

Can we have a shell script for this sort of conversion?

There are some web-based tools which display the contents of tar.Z format. I am trying to convert zip files to that

Thanks in advance

unzip the .zip file using command unzip.

Use tar command to tar the files.

Then use compress command on that tar file to create .tar.Z

Thanks a lot. I would give a shot.