Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save 100daysofdevops/83a785d5999d38586bd5e94dacc7fe77 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILE="/etc/passwd"
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