大连Linux/Unix高端就业、认证培训的领导者。
标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
如何监控一个目录下文件或者子目录中所有文件的容量发生变化? | 1428 | 6 | 2 | 2013-03-18 | |
四则运算举例 | 1024 | 0 | 3 | 2013-03-16 | |
第五章第4题 | 880 | 6 | 1 | 2013-03-15 | |
第五章第3题 | 627 | 5 | 1 | 2013-03-15 | |
第5章第2题 | 502 | 5 | 1 | 2013-03-15 | |
第五章第1题 | 712 | 6 | 1 | 2013-03-15 | |
第四章第3题d | 1272 | 4 | 1 | 2013-03-15 | |
第四章第3题c | 294 | 5 | 1 | 2013-03-15 | |
第四章第3题b | 1094 | 7 | 1 | 2013-03-15 | |
第四章第3题a | 637 | 6 | 1 | 2013-03-15 | |
正则表达式习题2 | 392 | 1 | 1 | 2013-03-12 | |
【推荐】 Mysql root密码忘记解决办法 | 808 | 0 | 0 | 2013-03-12 | |
正则表达式---习题1 | 476 | 0 | 1 | 2013-03-10 |
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