training-utils/welcome

18 строки
328 B
Plaintext
Исходник Обычный вид История

2012-12-23 01:53:24 +04:00
#!/bin/sh
2015-01-15 17:38:01 +03:00
answer=$@
#Ask for instructor unless specified
if [ -z "$1" ];
then
printf "Instructor name? "
read answer
fi
clear
2012-12-23 01:53:24 +04:00
echo '-------------------------------------------------'
echo 'Welcome to class on:' `date`
2015-01-15 17:38:01 +03:00
echo "I'm ${answer}, your instructor "
2012-12-23 01:53:24 +04:00
echo '-------------------------------------------------'
echo