perl sed & awk 的区别

1438阅读 0评论2010-08-31 obsd178
分类:LINUX

bash   -   GNU   Bourne-Again   Shell
gawk   -   Pattern   Scanning   and   Processing   Language
sed   -   a   Stream   Editor    
perl   -   Practical   Extraction   and   Report   Language

perl : powerful like ksh, fast, use widely   

awk  : basic using in shell script,  also write awk script   

bash : provide user interface, also provide some command   

sed  : line editor, oriented  lines  


perl 是一种很强的编程语言,你几乎可以用它做任何事情,awk 则简单多了,主要用来处理具有一定格式的文件。如果是 shell 编程,awk、sed 等都是不可缺少的工具,当然 perl 完全可以替代 awk、sed、grep 等命令.
上一篇:the safest and most dangerous places in the world?
下一篇:tips for your happy life