Search This Blog

Thursday, March 15, 2012

for loop in bash scripts


The most compatible fashion across all the bash version is : 
 
#!/bin/bash
        for i in `seq 1 10`;
        do
                echo $i
        done 
 
 

No comments:

Post a Comment