|
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
|