I want to compress a folder with 100 files in batches of 10. I used the following script to do this. But what happens is when I unzip the gzipped file, it has all the folders from /.
find /home/ubuntu/reports/tmp -type f -print0 | split -t '\0' -l 5 -d --filter 'tar czf /home/ubuntu/reports/tmp/reports-$(date +"%F-%T")-$FILE.tar.gz --files-from=- --null'
Can anyone please tell me how to zip only the files without the containing folders?