随笔分类 -  Script

record learning
shell中一些常用组合命令
摘要:${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脚本的进程.. 阅读全文

posted @ 2012-07-10 11:10 lianshisxq 阅读(338) 评论(0) 推荐(0)

正则表达式说明
摘要:参考地址:正则表达式说明正则表达式全部符号解释 阅读全文

posted @ 2012-06-26 22:02 lianshisxq 阅读(160) 评论(0) 推荐(0)

bash echo去回车和翻译转义字符
摘要:1、去掉回车$ echo -n "Enter your name:" //echo命令Enter your name:_ //提示输入2、转义$ echo -e "Enter your name:\c" //echo命令Enter your name:_ //提示输入其中,字符'_'表示光标 阅读全文

posted @ 2012-06-24 12:37 lianshisxq 阅读(199) 评论(0) 推荐(0)

perl环境配置以及Eclipse安装perl开发插件
摘要: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. 阅读全文

posted @ 2012-06-24 10:12 lianshisxq 阅读(299) 评论(0) 推荐(0)

导航