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

Suppose you execute a command using exec, what will be the status of your current process in the shell?

1073


What is sudo command?

1059


How can I send a mail with a compressed file as an attachment?

1040


How does path variable work?

978


How to print pid of the current shell?

995


Is shell and terminal the same?

1062


How do I run a script from command prompt?

1081


How would you compare the strings in a shell script?

985


Is shell scripting a language?

1040


What is awk in shell script?

1228


Is shell scripting difficult?

959


Why are shell scripts used?

1077


What is basename in shell script?

1057


What is the default ubuntu terminal?

1128


How do you create a shortcut in linux?

1202