Search Results

Search: Posts Made By: tarlz
3,063
Posted By Little
another way: i=0 while [ $i -le 9 ]; do ...
another way:

i=0
while [ $i -le 9 ]; do
j=$i
while [ $j -ge 0 ]; do
echo -n "$j "
(( j-- ));
done
echo "."
((i++))...
3,063
Posted By Jotne
#!/bin/bash i="0" p="." while [ $i -lt 10 ]...
#!/bin/bash
i="0"
p="."
while [ $i -lt 10 ]
do
p="$i $p"
echo $p
((i++))
done
Showing results 1 to 2 of 2

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