Files
School/Anul 1/Semestrul 2/OS/Labs/shell-programming/problem2.sh
T
2024-08-31 12:07:21 +03:00

14 lines
191 B
Bash

#!/bin/bash
i=0
for F in `find dir | grep -E "\.c"`;do
if test $i -eq 2;then
break;
fi
s=`cat $F| wc -l `
if test $s -ge 500;then
echo $F
i=`expr $i + 1`
fi
done