Search Results

Search: Posts Made By: barnhillec
2,699
Posted By gary_w
Try this as as alternative to using the {1..8}...
Try this as as alternative to using the {1..8} syntax which not all shells support:
#!/usr/dt/bin/dtksh

for ((i=1;i<9;i++))
do
echo "i is ${i}"
for ((j=1;j<$i+1;j++))
do
echo "\tj...
2,699
Posted By kristinu
for i in {1..3} do echo "i is $i" for...
for i in {1..3}
do
echo "i is $i"
for (( j=1; j<=i; j++ ))
do
echo "j is "$j
done
done
Showing results 1 to 2 of 2

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