Myapp_logs was added

This commit is contained in:
Daniela_M
2025-12-14 13:11:04 +00:00
parent 5cfc427fd0
commit eb2aab9832
4 changed files with 27 additions and 0 deletions

17
myapp_logs/audit_logs.sh Normal file
View File

@@ -0,0 +1,17 @@
#! /bin/bash
echo "Starting log files..."
for i in *
do
lines_number=$(wc -l < "$i")
echo "File: $i"
echo "Lines: $lines_number"
if [[ ! -s "$i" ]]; then
echo "Empty file!"
elif [[ $(lines_number) -gt 100 ]]; then
echo "Large files!"
else
echo "Normal file!"
fi
echo "----------------"
done