When i run the following code i get an error that says Integer expression expected!
How do i fix this?
#!/bin/bash
if [ $1 -gt $2 ];then
echo "wrong"
exit 1
fi
if [ $1 -lt $2 ];then
for i in /dev;do
if [ \($(ls -l $i|wc -l) -ge $1\) -o \($(ls -l $i|wc -l) -ge $2\) ];then
echo $i
ls -l
fi
done
fi
