This topic created in 4223 days ago, the information mentioned may be changed or developed.
感觉shell功能强大,处理日志文件非常好,但是function和一些计算功能用起来是在太蛋疼了,比如根据数据分类啥的,函数没有返回,没有输入。
python呢相反,function写起来方便,而且计算和数据处理很不错,但是下东西和对文件操作没有shell下用curl和其他命令方便。
有没有什么语言结合这两者的优点了呢,调用shell下面的command line tool非常方便,又可以对command line tool返回的结果进行处理不是那么蛋疼。
19 replies • 2014-10-22 21:14:55 +08:00
 |
|
1
mcfog Oct 22, 2014 1
宇宙最好的语言PHP
``` #!/usr/bin/env php <?php
$user = `whoami`;
echo "Hello $user"; ```
|
 |
|
2
sysno Oct 22, 2014
Perl 是你不二的选择。
|
 |
|
3
Kabie Oct 22, 2014
ipython
|
 |
|
4
ostholz Oct 22, 2014
<Everyday Scripting with Ruby>
|
 |
|
7
mind3x Oct 22, 2014 1
你可以看看awk
|
 |
|
8
kaidee Oct 22, 2014
看看Python的 subprocess 是不是你想要的
|
 |
|
9
Tink Oct 22, 2014
python啊
|
 |
|
11
764664 Oct 22, 2014
Ruby & Python
|
 |
|
12
ChiangDi Oct 22, 2014 via Android
Ruby,可以反引号直接执行 shell 命令,简直不能更爽。
|
 |
|
14
aveline Oct 22, 2014
PowerShell :-D
|
 |
|
15
dorentus Oct 22, 2014 via iPhone
fish shell
|
 |
|
16
ryd994 Oct 22, 2014
那就python专门处理数据,shell pipe进去就好
|