Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 does $$ mean in shell script?

992


What does .sh file contain?

903


How do you create a shortcut in linux?

1116


What is the conditional statement in shell scripting?

1163


What is the lifespan of a variable inside a shell script?

1575


What is an inode block?

995


What exactly is a shell?

1013


Tell something about the super block in shell scripting?

972


How do I run a script from command prompt?

996


What is an sh file?

885


How do I run a bin bash script?

970


Differentiate between ‘ and ” quotes.

1086


How do I run a powershell script?

1042


What is shell company all about?

934


Explain about return code?

1017