Search Results

Search: Posts Made By: barnhillec
2,708
Posted By barnhillec
Thanks kristinu
Thank you kristinu. That reminds me of old Pascal loops! I had no idea you could use that terminology.

I also made it work with a while loop:

while [ $j -le $i ]
do
...
2,708
Posted By barnhillec
Nested loop code
Greetings,

Would anyone be able to tell me why this nested loop doesn't seem to work in any variation?

for i in {1..8}
do
echo "i is "$i
for j in {1..i}
do
...
Showing results 1 to 2 of 2

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