
Op 10-06-10 14:53, Frederik Delaere schreef:
find . -type d -maxdepth 1 -exec tar -cf {}.tar {} \;
find -maxdepth 1 -type d -not -name . -exec tar -cf {}.tar {} \; Anders begint die leukerd eerst je huidige directory volledig te tarren.
voor het geval er nog meer subdirs zijn ?
Marijn Vandevoorde wrote:
find -type d -exec tar -cf {}.tar {} \; ongeveer zoiets
als je't niet meteen vindt wil ik meer moeite doen :-)
On Thu, 2010-06-10 at 14:45 +0200, Michiel Van Bel wrote:
ok, don't want to spend half an hour googling and reading man-pages: I have a directory with 25 subdirectories (each containing from 200MB to 3 GB of data) I want to have each subdirectory archived in a separate archive file.
Any idea on how to do this in 1 command?
Michiel
-- ================================================================== Thomas Van Parys Tel:+32 (0)9 331 36 95 fax:+32 (0)9 3313809 VIB Department of Plant Systems Biology, Ghent University Technologiepark 927, 9052 Gent, BELGIUM thomas.vanparys@psb.vib-ugent.be http://bioinformatics.psb.ugent.be ==================================================================