Script .sh: verifique si existe el archivo

#!/bin/bash
if [ -e x.txt ]
then
    echo "ok"
else
    echo "nok"
fi
Mckynde