View Single Post
Old 06-06-2004, 11:36 AM  
aflex
Confirmed User
 
Join Date: Oct 2002
Location: New Jersey - adaptweb at gmail.com
Posts: 3,127
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
aflex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote