Connecting Tech Pros Worldwide Help | Site Map

shell programming

Newbie
 
Join Date: Feb 2009
Posts: 8
#1: Mar 25 '09
please help me check the script below and tell me what is wrong and how to correct.Thank you

read num
for i in 1 2 3
s =`echo $num |cut -c $i `
gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,256
#2: Mar 25 '09

re: shell programming


Expand|Select|Wrap|Line Numbers
  1. for i in 1 2 3 
  2. do #missing
  3. s =`echo $num |cut -c $i ` 
  4. done #missing
also what is $num value?

Raghu
Reply