The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-28-2008
kim187 kim187 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 8
Cool help with scrpit

my friend has quized me.. I'm very new to scripts but I know I'm somewhat close

any help would be a major help..
here is the script

ex

shell program, hello, to display the phrase "hello world" 50 times (script should verify the

count) . Do not use a for loop! (hint should show hello world 1 ..... hello world 50 )

i put this

#!/bin/bash

count=1
max=50

while [ $count -le $max ] // a test of a condition -le another value
do
echo "Hello world $count"
let count=count+1

I still get a error.

any help would be nice thanks

airmax_sk@yahoo.com