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 |
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
how is the oppurtunities for unix in the software
What is sudo command?
write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?
How to print all array elements and their respective indexes?
What is awk in shell scripting?
How to print pid of the current shell?
What are types of shells?
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
How to modify the PATH variable and make it executable?
How to print the first array element?
What are the various stages of a linux process it passes through?