Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-28-2003, 01:46 AM   #1
Registered: Dec 2001
Location: Carlsbad
Distribution: LFS 4.0 (
Posts: 44

Rep: Reputation: 15
Question really retarded BASH shell scripting ?

I'm not a Linux newbie, so I feel stupid asking this, but...

Using BASH to create shell scripts, I see lots of reference to:

for i in...
echo $i

My retarded question is is the "i" a shell special character thingy? Or is it just common usage/example kind of like all C books start out with helloworld.c? Could I safely do:

for x in...
echo $x

Would that work? Or is'i' itself special? If "i" is special, is it a special character like an * or an @? Or is it a built-in or something else?
Old 03-28-2003, 01:57 AM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
the i is just common.
i remember learning some basic code in
the late 70's, and they were using i
in the for loops.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash shell scripting Sco Linux - Newbie 1 11-09-2004 12:58 PM
Help with I/O on bash shell scripting Dave6383 Programming 1 06-03-2004 06:24 PM
some bash shell scripting eltongeoff Linux - Newbie 2 10-22-2003 02:10 PM
Bash Shell Scripting Help Tangerine Programming 6 05-06-2003 03:10 PM
BASH Shell scripting help ewarmour Linux - General 8 05-25-2002 08:10 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration