Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created April 4, 2019 03:35
Show Gist options
  • Select an option

  • Save 100daysofdevops/e6ed473287b761d909ef7f4befd04649 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/e6ed473287b761d909ef7f4befd04649 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILE="$1"
if [ -f $FILE ]; then
echo "The file '$FILE' exists."
else
echo "The file '$FILE' in not found."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment