LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] scripting question

[ILUG] scripting question

luker_luker linux.ul.ie at gmail.com
Thu Feb 17 13:54:22 GMT 2011


Try Tcsh  then, if you like c syntax.

On Thu, Feb 17, 2011 at 11:53 AM, Conor Wynne <mariconor at gmail.com> wrote:

> 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.
>
> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/
>


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell