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 egrep?
What is console line?
What are types of shells?
Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"
How do I start a shell script?
Which is best institute for testing tool?
Why we are writting shell scripts? Plz if possible explain it briefly.
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
How do I open the shell in cmd?
How to take input values from the user?
How to pass an argument to a script?
How do I run a shell script on a mac?