I would like to check the file existence using shell script. I used below code. If I have TEST.png or test.png, for both the file names if condition is succeeding and printing File found. But I would like to enable case sensitivity for file check. Please let me know how to enable case sensitivity in shell script.
file="/mnt/floppy/test.png"
if [ -f "$file" ]
then
echo "File found"
else
echo "Invalid file"
fi