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 |
write a shell script to identify the given string is palindrome or not?
17 Answers CTS, HP, IBM, InfoEst, Wipro,
What is scripting used for?
What is in a script?
how to search for vowels a,e,i,o,u appearing in the same sequence in a file
How do you find out What is your shell?
How to get script name inside a script?
Explain about echo command?
How do I run a powershell script?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
What is basename in shell script?
What are the different types of variables used in shell script?