I want to quickly identify all writable files in the directory. What is the quick way to do it?
for var in `ls` do if [ -f $var -a -w $var ] then echo "$var having write permission"; else echo "$var not having write permission"; fi done