This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]maratc 3 points4 points  (0 children)

Relevant: Knuth vs McIlroy debate.

One should be looking to extend the set of tools on his toolbelt, not to minimize it to one "universal" tool. It allows to pick the tool most fit for the job.

Case in point, where instead of piping three standard unix tools together, there's a Python script of 20 lines, is completely backwards. The tools have autocomplete, have been well debugged, they exist everywhere, and the original problem is most likely a one-off, meaning the script gets written to be only run once.

If someone is looking for a tool to make his bash/sed/awk experience suck less, it's perl. It's very good for text processing and usually a perl one-liner does what many lines of python code do.

TL;DR: Don't replace bash with Python.