Is there a direct command or need to write a shell script for following requirement?
Everyday a folder is populated with approx 25k to 30k xml files. I need to create multiple zip files in the same folder each containing 50 xml files. The last zip file may or may not contain 50 xml files.
I have a folder with several files. These files are either .xml or .zip files.
These .zip files contain .xml and/or .zip files. These .zip contains also .xml or .zip, and so on... until we finally found .xml files.
In others words, I can have several "levels" of zip before finding my .xml files (cf.
I'm hoping there is a command line script that will do the following. I have folder A on my laptop with files and folder B on my external hard drive with files. I want to periodically run a scrip that will look at the files in A and B. If there are files in A that are not in B, then I would like to add those files to the folder to B, leaving A untouched. Is there a command line code for this?