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

How to print the first array element?

1082


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1428


How can you get the value of pi till a 100 decimal places?

1011


What is shell variable?

963


What language is used in terminal?

1019


What are the types of script?

1242


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1207


What are the various stages of a linux process it passes through?

1246


Is shell scripting a programming language?

1089


What does $1 mean in bash?

1134


Is bash an operating system?

1027


c program to display the information of given file similar to givan by the unix or linux command ls -l

2255


What is scripting used for?

1087


write a shell script to check the failed jobs?

4441


What language is bash written in?

1031