10 2012 档案

摘要:shell为GNU bash 3.2.48我想要求用户输入数字5或者6作为参数,本人参考的是鸟哥的入门课程,里面没有(目前为止)提及条件的结合,所以做过多种错误尝试: 1 # incorrect ones 2 #while [ -z "$input" || ( ! "$input" == "5" && ! "$input" == "6" ) ] 3 #while [ -z "$input" || \( ! "$input" == " 阅读全文

posted @ 2012-10-19 15:58 name2579 阅读(570) 评论(0) 推荐(0)

摘要:1. Edit or create file ~/.bash_profile.2. To add new alias 'll' in ~/.bash_profile with bellowing line:alias ll="ls -laG | less" 3. To add global variable:export u="/Applications/Utilities/" Save the file and open a new terminal window, those alias and variables are useab 阅读全文

posted @ 2012-10-15 11:34 name2579 阅读(246) 评论(0) 推荐(0)

导航