摘要: 如果enter不终止输入, 试试按ctrl+j 阅读全文
posted @ 2014-12-13 22:32 helloweworld 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: 一. 字符串是否相等.建议用if [[ "${str1}" == "${str2}" ]]或if [ "${str1}" = "${str2}" ]注意: == left and right has space!str1=""str2=str3="hello"str4="world"# trueif... 阅读全文
posted @ 2014-12-13 19:20 helloweworld 阅读(476) 评论(0) 推荐(0) 编辑