#!/bin/bash
filename=$1
if [ -f "$filename" ]; then
echo "File exists"
else
echo "File does not exist"
fi

then save it with any name you want e.g: s.sh

then run it like this

./s.sh <Name Of The File>

./s.sh list.txt