Need help ASAP - FIND - TAR - GZIP

Hi,

I need to combined in 1 line the execution below :

 find * -type f -mtime -$nb_days -print | xargs tar -cvf $MAITUT/BCK_DATA.tar 
 
gzip $MAITUT/BCK_DATA.tar.gz

The fact that the TAR is very big, at the end I need to generate only the GZ file.

The option z on the tar is not available.

thanks

find /path -type f -mtime -$days | tar -czf - -T - | gzip -9 >path/file.tar.gz

Leave the ASAP out. It's only a reason NOT to help you at all, and please use [ CODE]...your code here...[ /CODE]-Tags.

Moderator comments were removed during original forum migration.