c program to check whether all the directories in the path
exists has read and write permission
Answer / rakesh
#!/bin/bash
for x in $(echo $PATH |sed "s/:/ /g")
do
echo "Directories in your PATH which you cannot write are:"
echo $(find $x -perm /666 -type d -maxdepth 0 2>/dev/null
|xargs ls -dl | grep -v $USER)
done
exit 0;
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a shell script in windows?
There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.
How to write a function?
What is shell geeksforgeeks?
How do I run a bin bash script?
How to declare functions in unix shell script?
What is a shell script? Can you name some of its advantages?
What is shell prompt?
Is powershell a language?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
How does shell scripting work?
how is the oppurtunities for unix in the software