随笔分类 -  Shell 学习

Shell command line and skill
How to use wget ?
摘要:1.How to get conent (not download page) of website?wget -q -O - 阅读全文

posted @ 2015-06-15 17:33 Newbie wang 阅读(139) 评论(0) 推荐(0)

How to only capute sub-matched character by grep
摘要:File content: ceph-0.80.9-82.1.x86_64.rpm 11-Jun-2015 16:37 9.9M Details ceph-common-0.80.9-82.1.x86_64.rpm 11-Jun-2015 16:37 3.9M Details ceph-common... 阅读全文

posted @ 2015-06-15 17:29 Newbie wang 阅读(191) 评论(0) 推荐(0)

Vim ide for shell development
摘要:Source : This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a Linux sysadmin or programmer, you may do following repetitive tasks... 阅读全文

posted @ 2015-05-18 17:31 Newbie wang 阅读(655) 评论(0) 推荐(0)

Shell displays color output
摘要:格式: echo "/033[字背景颜色;字体颜色m字符串/033[控制码"如果单纯显示字体颜色可以固定控制码位0m。格式: echo "/033[字背景颜色;字体颜色m字符串/033[0m"字背景颜色范围:40 - 4940:黑 41:深红 42:绿 43:黄色 44:蓝色 45:紫色 46:深绿... 阅读全文

posted @ 2015-05-04 10:30 Newbie wang 阅读(335) 评论(0) 推荐(0)

linux shell 字符串操作(长度,查找,替换)详解
摘要:一、判断读取字符串值表达式含义${var}变量var的值, 与$var相同${var-DEFAULT}如果var没有被声明, 那么就以$DEFAULT作为其值 *${var:-DEFAULT}如果var没有被声明, 或者其值为空, 那么就以$DEFAULT作为其值 *${var=DEFAULT}如果... 阅读全文

posted @ 2014-07-29 14:46 Newbie wang 阅读(2718) 评论(0) 推荐(0)