摘要:${var:-”default var”} 如,sed ${1:-25} 意思:显示参数$1表示的行数(默认为25)${var:=”default var”}${var:?”message”}${#var}${var#matcher}${var##matcher}${var%matcher}${var%%matcher}ls my_{finger,toe}soutput: my_fingers my_toes[]: test 命令的一个软链接$# :引用的变量总数(参数个数)$- :shell使用的当前选项$*:显示所有参数$!:最后一个后台运行的进程ID号$$ :当前shell脚本的进程..
阅读全文
摘要:参考地址:正则表达式说明正则表达式全部符号解释
阅读全文
摘要:1、去掉回车$ echo -n "Enter your name:" //echo命令Enter your name:_ //提示输入2、转义$ echo -e "Enter your name:\c" //echo命令Enter your name:_ //提示输入其中,字符'_'表示光标
阅读全文
摘要:1、下载并安装windows下perl环境:AcitvePerl for Windows http://www.activestate.com/activeperl/downloads2、安装完以后,在cmd中输入“perl -v”查看是否已经安装成功3、进入EPIC官网,根据网上的提示,在Eclipse中下载perl开发插件 http://www.epic-ide.org/ 官网上方法: For the impatient: SelectHelp > Software Updates...in Eclipse, add the update sitehttp://e-p-i-c.sf.
阅读全文