Shell编程语言-Batsh
2014-09-16 14:08:00 阿炯
Batsh 是一个简单的编程语言,可方便的编译成 Bash 和 Windows 批处理脚本。相当于你需要写一次脚本就可以在不同的平台上运行,而且没有任何依赖包。采用C语言写成并在MIT协议下授权。
示例代码:
// On UNIX
output = ls();
// On Windows
output = dir();
// Platform independent
output = readdir();
// Test existence
ex = exists("file.txt");
最新版本:
官方主页:http://batsh.org/
示例代码:
// On UNIX
output = ls();
// On Windows
output = dir();
// Platform independent
output = readdir();
// Test existence
ex = exists("file.txt");
最新版本:
官方主页:http://batsh.org/