How to initialize a directory size to a variable??
Answers were Sorted based on User's Feedback
Answer / damodar rao
#!/bin/bash
echo 'enter the directory name with path Ex: /home/damoar: ';
read $x;
$size = `du -h $x`;
echo 'size of a given directory $x is : `$size` ';
:wq
| Is This Answer Correct ? | 3 Yes | 0 No |
What is the best shell scripting language?
Is shell scripting a language?
Write a shell script to looking at the log file to see if the test has passed or not
I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?
What is bash coding?
Explain about non-login shell files?
What does $# stand for?
How do I set bash as default shell mac?
Write a script to print the first 10 elements of fibonacci series.
What is the difference between a 'thread' and a 'process'?
What is the difference between a shell variable that is exported and the one that is not exported?
How do I run a shell script in powershell?