From 86a9cd0476e4bfa0ff1dae0a5585cbac7187a6e7 Mon Sep 17 00:00:00 2001 From: Sai Ram Date: Fri, 23 Jan 2026 12:41:17 +0530 Subject: [PATCH] chore : updated the shellscript and description --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 +