Hi,
i want to zip the files that generates automatically
every few minutes (files generated are in .arc
extension)....any body write a script for this...
thanks in advance

Answer Posted / vipul dalwala

while true
do
find . -name *.arc -exec gzip {} \;
sleep 300
done

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What shell is bin sh?

534


What can you do with powershell?

611


How do we create command aliases in a shell?

542


What is a batch file used for?

564


wats the deinitions for shell utility and filter?

1847






What is the use of break command?

590


How can I set the default rwx permission to all users on every file which is created in the current shell?

907


What are the different commands available to check the disk usage?

495


How to get the first line from a file using just the terminal?

597


Is scripting and coding the same thing?

565


How to print all array elements and their respective indexes?

510


What is a command line shell?

565


What is the crontab?

544


What does debug script mean?

553


How do I open the shell in cmd?

529