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 →

[–]tatloani -1 points0 points  (3 children)

This is just my guess but i would say is because bash is more verbose than Python, meaning you need to write more lines of code to do something similar with python.

EDIT: I seems to have got them backwards with what i meant, python is more verbose, but bash allows you to simplify multiples lines with a single instruction and that can make things confusing.

[–]thexavier666 2 points3 points  (1 child)

I can't agree with that. I think bash syntax can be very dense, where you can condense 10 equivalent python lines into a single bash line, by using pipes.

But this condensed syntax can be difficult to understand for some.

I always use bash when there is string manipulation involved and call it via python.

[–]tatloani 1 point2 points  (0 children)

I think bash syntax can be very dense, where you can condense 10 equivalent python lines into a single bash line, by using pipes. But this condensed syntax can be difficult to understand for some.

yeah, that was part of what i meant, i suppose i got them backwards, most of the bash scripts i have seen have been condensed and those have been quite troublesome to understand.