[ILUG] scripting question

Conor Wynne mariconor at gmail.com
Thu Feb 17 11:53:03 GMT 2011


Hi all,

When scripting in bash, and using C style syntax, example

for (i=0;i<=50;i++)

do I have to declare the variable(s) before hand?

Compared to :

#!/bin/bash

        for i in `seq 1 50`;
        do
                echo $i
        done   

Just wondering.. as I'm more familiar with C than anything else.

Regards
Conor.



More information about the ILUG mailing list