I need a little help with a code im working on.
i need to copy from multiple folders (everything inside the folders - eg. everything inside /test/folder1 /test/folder2 /test/folder3 )
after copying the files i would need to gzip the files into a compressed file.
I need to do it as one swift movement if possible
I need to know how to copy from multiple directories and then imediately gzip the files copied hopefully without having to copy to a different directory and then gzip.
the folder i need the compressed file in has lots of other files inside that i dont wish to be gzipped ...
Thanks in advance