大连Linux/Unix高端就业、认证培训的领导者。
| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| sed - 非交互式文本编辑器 | 1232 | 0 | 1 | 2008-03-25 | |
| AWK 手册 | 1419 | 0 | 2 | 2008-03-25 | |
| shell编程下的AWK语法 | 1018 | 0 | 1 | 2008-03-25 | |
| 正则和文件名匹配容易混得地方(提醒注意) | 1112 | 0 | 1 | 2008-03-25 | |
| Shell 第二章练习答案 | 1631 | 2 | 1 | 2008-03-25 | |
| SED用法 | 1844 | 0 | 2 | 2007-11-26 | |
| 一个群发邮件的例子 | 1673 | 0 | 1 | 2006-11-28 | |
| shell常用规则 | 2318 | 1 | 1 | 2006-11-23 | |
| 管理脚本语言gawk--连载4 | 2185 | 0 | 1 | 2006-11-17 | |
| 管理脚本语言--连载2 | 1428 | 0 | 1 | 2006-11-17 | |
| 管理脚本语言gawk--连载3 | 1522 | 0 | 1 | 2006-11-17 | |
| 管理脚本语言--连载2 | 1278 | 0 | 1 | 2006-11-17 | |
| 管理脚本语言--连载1 | 2324 | 0 | 1 | 2006-11-17 | |
| Shell运算符 | 2465 | 0 | 1 | 2006-11-17 | |
| Shell 整数变量和字符变量的比较操作 | 4275 | 0 | 1 | 2006-11-17 | |
| BASH Shell的保留变量 | 2302 | 0 | 1 | 2006-11-17 | |
| Shell 函数的使用 | 2594 | 0 | 1 | 2006-11-17 |
w6308661392013-03-26 17:04
gltnsrice:尹伊明:
a:
[root@localhost ~]# w | sed 's/\([....]\{4,\}\) .*/\1/'
[root@localhost ~]# w | cut -d' ' -f1 | sed 's/\(.....*\)/\1/g'
[root@localhost ~]# who | sed 's/\([^ ]\{4,\}\) .*/\1/'
[root@localhost ~]# who | grep '^[^ ]\{4,\}'
b:
[root@localhost home]# cat passwd | cut -d: -f3 | grep '[0-9]\{3,\}'
[root@localhost home]# cat passwd | cut -d: -f1,3 | grep '[0-9]\{3,\}'
d:
[root@localhost home]# ls -l | sed 's/ */*/g' | cut -d* -f9,5 | sort -n







gltnsrice2013-03-16 12:07
尹伊明:
a:
[root@localhost ~]# w | sed 's/\([....]\{4,\}\) .*/\1/'
[root@localhost ~]# w | cut -d' ' -f1 | sed 's/\(.....*\)/\1/g'
[root@localhost ~]# who | sed 's/\([^ ]\{4,\}\) .*/\1/'
[root@localhost ~]# who | grep '^[^ ]\{4,\}'
b:
[root@localhost home]# cat passwd | cut -d: -f3 | grep '[0-9]\{3,\}'
[root@localhost home]# cat passwd | cut -d: -f1,3 | grep '[0-9]\{3,\}'
d:
[root@localhost home]# ls -l | sed 's/ */*/g' | cut -d* -f9,5 | sort -n