随笔分类 -  Shell

摘要:输入一个成绩值,大于90,得A,大于80得B,其他得C!脚本如下:#!/bin/bash read scoreif ["score" -lt 0 -o "score" -gt 100 ] then echo "iput:"elif [ "score" -ge 90 ] then echo "A"el... 阅读全文
posted @ 2015-10-23 13:13 elix 阅读(8402) 评论(0) 推荐(0)