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 are the 3 standard streams in linux?

1210


How do I save a powershell script?

1217


What is the syntax of while loop in shell scripting?

1096


What are script files?

1074


What is shell variable?

971


What is a shell made of?

1006


Write down the syntax of "for " loop

1155


How to open a read-only file in the shell?

1179


What does echo mean in scripting?

1052


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

1475


What is the meaning of $1 in shell script?

1163


How do I set bash as default shell mac?

1052


What is shell application?

1036


Why is used in shell scripting?

1048


How do I open a jshell in cmd?

1323