Linux Check File Exist or not – Shell Script

The following script used to check the specified file present or not in shell script

#!/bin/bash
#########################################################################################
# This Shell script used to find the specificed
file exixts or not on particular location #########################################################################################

filePath="/home/file-path"
fileName="$filePath/filename.txt"
if [ -f "$fileName" ]
then
echo "$fileName found"
else
echo "$fileName not found"
fi

To check multiple file on same if condtion

filePath="/home/file-path"
fileName="$filePath/filename.txt"
fileName2="$filePath/filename2.txt"
if [ -f "$fileName" ] && [ -f "$fileName2" ]
then
echo "$fileName found"
else
echo "$fileName not found"
fi