diff --git a/README.md b/README.md index c6345487..894079af 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ # Shell -Schell Scripts +# Check if an ERROR exists in a log file + +#!/bin/bash + +LOG_FILE="/var/log/app.log" + +if grep -i "error" "$LOG_FILE" > /dev/null; then + echo "❌ ERROR found in log file!" +else + echo "✅ No errors found." +fi +