Skrip .sh: periksa apakah ada file

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