CCL: Zipping the folders



 Sent to CCL by: steinbrt]|[rci.rutgers.edu
 I doubt that this question is CCL material, but 'man gzip' shows:
  -r --recursive
               Travel  the directory structure recursively. If any of the
 file names specified on the command line are directories,
               gzip will descend into the directory and compress all the
 files it finds there (or decompress them in  the  case  of
               gunzip ).
 Thomas
 On Fri, April 29, 2011 4:35 am, Sanjay Bharathwaj
 computationalchemist{=}gmail.com wrote:
 > Dear Colleagues,
 >
 > I have lots of folder and wish to zip it.
 >
 > I know one can do, by entering each folder and giving the comment
 > tar -cf ./foldername or  gzip ./folder name
 > and the output here is single gip file with enormous size.
 >
 > I don't want this single file.
 >
 > Instead, i wish to zip all the files in the folder and
 > that allows me to access each of the zip files whenever i need it.
 >
 >
 > (i.e) Assuming the Mainfolder has two subfolders
 > which has 10 and 15 files respectively as follows
 >
 > Mainfolder   /folder1/10 files
 >                   /folder2/15 files
 >
 > gzip/tar gives me mainfolder.zip as one file.
 >
 > But i am looking for some command which
 > does the following
 >
 > Mainfolder   /folder1/10 files.zip
 >                   /folder2/15 files.zip
 >
 > So all the folders remain uncompressed while just the
 > files get zipped.
 >
 > The one way is to go through each folder and use
 > gzip. But that's painful job as i have more than 100's of folder.
 > Does any one know which command should i use for this.
 >
 > Best regards,
 > Sanjay
 >
 >
 >
 >
 > --
 > Regards,
 > Dr. Sanjay Bharathwaj Kumar,
 > Dharmendra Institute of Technology,
 > India.
 >
 Dr. Thomas Steinbrecher
 formerly at the
 BioMaps Institute
 Rutgers University
 610 Taylor Rd.
 Piscataway, NJ 08854