#!/bin/bash

echo "read" >  test.txt
chmod -r test.txt
ls -l test.txt

if [ -r test.txt ]; then
  echo "READ OK"
else
  echo "READ NG"
fi

chmod +r test.txt
ls -l test.txt
if [ -r test.txt ]; then
  echo "READ OK"
else
  echo "READ NG"
fi

rm test.txt
