I want to check if the given file exists However, I do not know how to properly write the condition to point to other files
#!/bin/bash
if [ $# -ge 2 ]
then
for i in `seq 1 $#`
do
if [ -e ${$i} ]
then
echo "yes"
else
echo "not exist"
fi
done
else
echo ""
fi