shell programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zy413952631
    New Member
    • Feb 2009
    • 7

    shell programming

    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
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Code:
    for i in 1 2 3 
    do #missing
    s =`echo $num |cut -c $i ` 
    done #missing
    also what is $num value?

    Raghu

    Comment

    Working...