Changeset 57 for trunk/IPs/systemC/processor/Morpheo/Script/range.sh
- Timestamp:
- Sep 28, 2007, 2:58:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/range.sh
r2 r57 19 19 declare step=$3; 20 20 21 while test $a -l e$b; do21 while test $a -lt $b; do 22 22 echo $a; 23 23 a=$(($a $step)); 24 done 24 done 25 26 if test $a -eq $b; then 27 echo $a; 28 fi; 25 29 } 26 30 … … 33 37 declare iter=$4; 34 38 35 while test $a -l e$b -a $iter -gt 1; do39 while test $a -lt $b -a $iter -gt 1; do 36 40 a=$(($a $step)); 37 41 iter=$(($iter-1)); 38 42 done; 43 44 if test $a -eq $b; then 45 echo $a; 46 fi; 39 47 40 48 if test $iter -eq 1; then
Note: See TracChangeset
for help on using the changeset viewer.