Compare commits

1 Commits

Author SHA1 Message Date
Daniela_M
414a078505 readme.md added 2025-12-14 08:26:26 +00:00
6 changed files with 2 additions and 40 deletions

View File

@@ -1,3 +0,0 @@
linie1
linie2
linie3

View File

@@ -1,17 +0,0 @@
#! /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

View File

@@ -1,7 +0,0 @@
error1
error2
error3
error4
error5
error6

View File

@@ -1,2 +0,0 @@
### fun.sh ---------verifica fisierele dintr-un director si scrie un comentariu pentru fiecare------ ###
#### ... for, if, elif, echo ####

View File

@@ -2,15 +2,6 @@
echo "Robotul analizaeaza fisierele..." echo "Robotul analizaeaza fisierele..."
for i in * for i in *
do do
echo "File: $i" echo "File: $f"
if [[ "$i" == *.sh ]]; then
echo "Script magic detectat!";
elif [ ! -s "$i" ]; then
echo "Nu te pot ajuta cu nimic, sunt gol!"
else
echo "Contin secrete!";
fi
echo "-----------------"
done done