I'm trying to learn bash shell scripting, by writing a script, using  
an array. I'm finding plenty of information about arrays but nothing  
about making elements within an array integers.

I'm trying to make a while loop with


count=1
chapter=1
amount=( 50 40 27 36 34 )

while [ $chapter -le ${amount[$count]} ]; do

I'm getting the error "[: 51: unary operator expected"

Thanks for any help.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/0XFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to