to test that a file exists but is not writeable?
I want to loop through the files of a directory selecting only those that are ordinary files, but which also do not have write permission. I've read that ! will negate any criterion - but where exactly does it go? The loop as it stands is as follows:
for i in *
if [ -f "$i" -a -w "$i" ]; then
Where do I put in the ! such that the test is for an ordinary file which is also not writeable?