unix - script to tar and copy directories -
hey, think best way ask question show need happen.
i need go from:
project_direcory project solution1 solution2 solution3
to:
project_direcory project.tar.gz solution1.tar.gz solution2.tar.gz solution3.tar.gz
project.tar.gz still contains solution directories. having issues copying files inside of solution directories , placing them in project_directory. there text files in project, should not copied. trying:
for file in $(find /place/* -type d);do tar zcf ${file}.tar.gz $file;done file in $(find /place/* );do mv ${file} /place;done file in $(find /place/* -type d);do cp -r ${file} /place;done
what best way this?
use find -maxdepth 2
restrict depth.
Comments
Post a Comment