问题描述
我通常美元的Python C $Ç管理脚本,我知道许多人是在Perl code他们。我正要投资一些时间提高在bash编程我的技能。但我不知道周围的人认为这是一个好主意?
I normally code admin scripts in Python and I know of many that code them in Perl. I was about to invest some time on improving my skills on bash programming. But I wonder if people around think that this is a good idea ?
我知道的bash是个好技能有与市场往往需要它,但是,如果我与Python或Perl然后得到通过......是不是真的值得的?
I know bash is a good skill to have and market very often demand it but ... if I can get by with Python or Perl then ... is it really worth the effort ?
随着答案我要找情况下,实际上是bash的方式比Perl和Python更好的开发管理脚本。
As answers I am looking for cases where actually bash is way better than Perl or Python to develop admin scripts.
推荐答案
任何你学习只能使你受益,的从不的是一个坏主意,学到一些东西。也就是说,如果你觉得你的生产与Python话,我不明白为什么你需要的是bash。 Python是更强大的(是一个完全成熟的编程语言)和国际海事组织有一个更好,更可读的语法。击的是的往往是快速和肮脏的脚本编写很有用,但。
Anything you learn can only benefit you, never is it a bad idea to learn something. That said, if you feel you're productive with Python then I don't see why you would need bash. Python is more powerful (being a full blown programming language) and IMO has a nicer, more readable syntax. Bash is often useful for quick and dirty scripting, though.
如果你决定去学习它,这里有一些资源,让你开始:
If you do decide to learn it, here are some resources to get you started:
- A Bash guide for beginners
- The magnificent Bash FAQ
- Common Bash Pitfalls
虽然一些规则经验法则在关于什么时候应该使用每个空气偶尔抛出,我想你会看着办吧,一旦你了解所有选项。在你的军火库另一个工具始终是一个优势。
Although some rules-of-thumb are occasionally thrown in the air regarding when you should use each, I think you'll figure it out once you get to know all of your options. Having another tool in your arsenal is always an advantage.
这篇关于Python和/或Perl VS庆典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!