I have a folder working
and its structure is something like this -
working/
100/
1/
2/
3/
200/
1/
2/
3/
300/
1/
2/
3/
And each of these 1
2
3
folders have around 1000 files.
I want to zip the files under the 1
2
3
folders separately. The zip should not contain their top directories. Put the zips wherever they are. Such as, if there are files foo1
, foo2
and foo3
under folder 1
then it should form a zip under 1
which should just have the foo files.
tar -lzip --no-wildcards-match-slash -c -f arch.zip working/*/
?1
2
3
folders. Such as, if there are filesfoo1
foo2
andfoo3
under folder1
then it should form a zip under1
which should just have thefoo
files. @Costas, i want tozip
them strictly. You sure this'll work?