首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

一些强大的shell用法跟脚本

2013-02-19 
一些强大的shell用法和脚本(陈皓注:有点复杂了,history|awk ‘{print $2}’|awk ‘BEGIN {FS”|”} {print $1}

一些强大的shell用法和脚本

(陈皓注:有点复杂了,history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c|sort -rn|head -10)
这行脚本能输出你最常用的十条命令,由此甚至可以洞察你是一个什么类型的程序员。tr -c “[:digit:]” ” ” < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR=”1;32″ grep –color “[^ ]“
想看看Marix的屏幕效果吗?(不是很像,但也很Cool!)最后还是那句Shell的至理名言:“Where there is a shell,there is a way!”内容主要转自:http://coolshell.cn/articles/8619.html

热点排行