#!/bin/sh #Script name: sayit echo Type q to quit. go=start while [ -n "$go" ] # Make sure to double quote the variable do echo -n I love you. read word if [ "$word" = q -o "$word" = Q ] then echo "I'll always love you!" go= fi done
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机