Perl、Python、AWK、sed 之间有哪些区别?处理文本使用那种脚本语言比较好?理由是什么?
关注者
143
被浏览
39,909
12 个回答
- sed - when you need to do simple text transforms on files.
- awk - when you only need simple formatting and summarization or transformation of data.
- perl - for almost any task, but especially when the task needs complex regular expressions.
- python - for the same tasks that you could use Perl for.
这里回答很全了: http:// stackoverflow.com/quest ions/366980/what-are-the-differences-between-perl-python-awk-and-sed