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...

How to initialize a directory size to a variable??

Answer Posted / pushkar

if [ -d $var ] ;then
rm -rf $var
fi
mkdir $var

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is bash?

904


Why is used in shell scripting?

978


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3462


What is .sh file in mac?

1003


What are the different variables present in linux shell?

1086


How do I read a .sh file?

1090


Write down the syntax for all the loops in shell scripting.

1115


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

1115


What is batch file programming?

1146


How to find duplicate record in file using shell script?

1378


What is a shell made of?

940


What are the different types of commonly used shells on a typical linux system?

1065


What is the first line in every perl script called?

1024


How to write a function?

1017


What is mac default shell?

1083