Headlines
Loading...
UNIX Program to display a list of all files in the current directory with permission

UNIX Program to display a list of all files in the current directory with permission

Write a shell script, which display a list of all files in the current directory those have read, write and execute permission.
for i in `ls`
do
  if [ -r $i -a -w $i -a -x $i ]
  then
        echo $i
  fi
done
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***