Search

Tuesday, August 19, 2008

Check if file exists

#!/bin/bash
if [ -e xyz ]
then
echo "file xyz is there"
else
echo "Oops "
fi

No comments: