Compare commits
1 Commits
developmen
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
414a078505 |
@@ -1,3 +0,0 @@
|
|||||||
linie1
|
|
||||||
linie2
|
|
||||||
linie3
|
|
||||||
@@ -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
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
error1
|
|
||||||
error2
|
|
||||||
error3
|
|
||||||
error4
|
|
||||||
error5
|
|
||||||
error6
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
### fun.sh ---------verifica fisierele dintr-un director si scrie un comentariu pentru fiecare------ ###
|
|
||||||
#### ... for, if, elif, echo ####
|
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user