Quote:
Originally Posted by pnmanojshenoy
Hello,
Can some one help me to write a script to compress any file with 10 MB size to tar.gz
Say /var/log/tes directory has a file with 10 MB I want it to compress to tar.gz
Thanks
|
We will be glad to help you. Post what you've written so far, and where you're having problems. However, we are not going to write your script for you.
There are many bash scripting tutorials on the web, that you can easily find. As a hint, read the man pages for the find and tar commands, as they will give you all the info you need to find the files, and compress them. Use the pipe " | " to chain commands together.