#! /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