其他
Learning Python For Bash Scripters
It turns out it is a huge secret that Python is easier to program in and more powerful than Bash. These code examples are meant to help solve that problem. If you feel intimidated by Object Oriented programming, don't, it is optional in Python. You don't even need to know Bash that well, Python is easy, jump right in!
There are five scripts in the subversion repository, the first four scripts produce identical output and do identical things in Python and Bash. The last script is a good example to use as a template to create command line tools for Bash programmers. You can add more commands and add command line options to run them.
If you like it, want to contribute, or just want to talk, send me an email.
Using skeleton code clbash.py:
**For the command line tool/template, here is an example usage: ``` Usage: py4sa [option]
A unix toolbox powered by Python
<
暂无评论