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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -