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 is scripting used for?

991


What is shell and shell script?

1061


What is shell environment?

915


What is awk in shell scripting?

981


Is shell scripting a programming language?

999


What are scripts in psychology?

988


What can you do with powershell?

1063


What is @echo off?

942


How do you find out What is your shell?

1007


Is cmd a shell?

957


How do you create a shortcut in linux?

1117


What are the default permissions of a file when it is created?

956


What is .sh file in mac?

972


What does echo mean in scripting?

953


What is the use of break command?

1037