I'm trying to loop a statement/output in linux. So in my ssh directory if I do ls. There is a file call hello.c which prints Hello James. What i'm trying to do is a for loop that prints it 4 times.
This is what i've tried.
for((int i=1;i<=4;i++));
do
./hello.c
echo $i
done
However nothing is printing.