Beginner question, Bash-script - date

view full story

http://www.linuxquestions.org – I get compilationserror on this script, and it doesnt says reallt whats wrong, so can anyone see whats worn in the code? Is it ok to type the first line like that??(date). Thanks! [START CODE] time= 'date +%H:%M' if [$time -lt 12]; then txt="Good morning " elif [$tid -lt -lt 19]; then txt="Good afternoon " else txt="Good evening" fi echo $txt $HOST [END CODE] (HowTos)