#! /bin/bash while true;do read -p "please input:" a expr $a + 1 &> /dev/null if [ $? -eq 0 ] ;then echo "input is int." else echo "input is char." fi if [ $a == 'q' ];then break fi done
judge input type
原创ljvictor ©著作权
文章标签 linux bash 文章分类 服务器
下一篇:operators usages
-
Judge Judy
Judge Judy's comcast
职场 休闲 CrackingEnglish -
1075 PAT Judge
题目题意:摘自柳神 ,反正
1075 PAT Judge i++ #include ios -
浅谈online judge平台 spj [special judge] 使用 | 修改问题
浅谈oj平台
c++ online judge #include ios 文件指针 -
Multi-judge Solving
"C. Multi judge Solving" 写这个题的时
贪心 #define ios i++ -
UVA - 489 Hangman Judge
题目大意:检测看字符串在有限的错误内
i++ #include 字符串 -
UVa 12169 Disgruntled Judge
exgcd
#include #define i++