Search Results

Search: Posts Made By: ymwong
6,653
Posted By ymwong
The loop was executed $count times
#!/bin/sh
count=0
for i in 2 4 6
do
echo "i is $i"
count='expr $count + 1'
done
echo "The loop was executed $count times"


with these scripts
my output is :
i is 2
i is 4
i is 6...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 05:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy