I would like to zip files from directory but only to given depth
so e.g. in example below I would like to include files till depth 3
dir0/ dir1/ dir2 -> subdir1, subdir2 dir3 -> file1
if I could issue
zip --depth 3 -r output dir0
I would have with output: dir0/dir1/file1
How can I achieve that, I may use tar, or any other common tool in linux?