System loops using non-integers?
        Posted  
        
            by mary
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mary
        
        
        
        Published on 2010-03-18T17:52:05Z
        Indexed on 
            2010/03/18
            18:11 UTC
        
        
        Read the original article
        Hit count: 248
        
I wrote a .sh file to compile and run a few programs for a homework assignment. I have a "for" loop in the script, but it won't work unless I use only integers:
#!/bin/bash
for (( i=10; i<=100000; i+=100))
do
    ./hw3_2_2 $i
done
The variable $i is an input for the program hw3_2_2, and I have non-integer values I'd like to use. How could I loop through running the code with a list of decimal numbers?
© Stack Overflow or respective owner