I have this
if [[ -e file.jpg ]] ;then echo "aaaaaaaaa"; fi
and it prints "aaaaaaa"
but I want to print if there is file.png or file.png also
so I need something like this
if [[ -e file.* ]] ;then echo "aaaaaaaaa"; fi
but it doesn't work I am missing something in the syntax
Thanks