anyone know bash script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aflex
    Confirmed User
    • Oct 2002
    • 3127

    #1

    anyone know bash script?

    im stuck on a small project for school, its a very basic "appointment book" script in bash, heres my problem:

    What day would you like to see? mo
    ': not a valid identifier
    '/plz: line 17: syntax error near unexpected token `in
    '/plz: line 17: `case "$dayc" in


    heres the code it comes from:

    echo -n "What day would you like to see? " ; read day
    dayc=`echo $day | cut -c1-2 | tr "A-Z" "a-z"`
    case "$dayc" in
    ""mo|tu|we|th|fr|sa|su"") echo "Acceptable Input";;

    i dont see whats wrong?
    self made mothafucka.

    buying premium domains & developed sites with revenue/traffic -> adaptweb at gmail.com
Working...