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 |
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
1.Write a script, which converts a number from binary to hexadecimal format or vice versa.
What is shell geeksforgeeks?
How do I run a .sh file on mac?
What are the 4 basics of OOP?
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
What is the best shell scripting language?
Explain about echo command?
What does chmod do?
What does $@ mean bash?
what is the difference between writing code in shell and editor?
How to check if the previous command was run successfully?