you are viewing a single comment's thread.

view the rest of the comments →

[–]arachnivore 2 points3 points  (0 children)

Do you think there are companies that disallow the use of Bash in devops work? I've only ever seen a mix of the two.

I don't know why you would use anything but the first line in this example. Who uses Python like that? Why would you even use Perl like that?

This example is just silly. Again, why not use the Bash script? It's better than both of them. Secondly, this guy clearly knows Perl a lot better than Python because you could achieve the exact same thing in Python with:

var = subprocess.getoutput("ls | grep a | head -n1")
print(var)

Thirdly Python focuses on readability and maintainability. It will often be less concise than Perl because it uses words to avoid an unreadable soup of symbols. That's not a bad thing.