4 ms·
I have a counterpoint for many comments here. If you are writing some Python for example, and most of your code is executing commands such as tail, cat, wc, etc
by makz 3y ago
I have a counterpoint for many comments here. If you are writing some Python for example, and most of your code is executing commands such as tail, cat, wc, etc. and then doing something with their output, you are better off writing a shell script instead .
- DerekL 3y agoBut if you're in Python, why would you need to need to execute separate processes to do any of that?
- makz 3y agoI don’t know, ask the people writing that kind of stuff.
- Leo_Germond 3y agoIn my own experience people typically do that when they have some experience in bash, none in python, and try to do something in python the way they would do it in bash. So for those my advice, instead of getting back again to bash is to get a bit curious about the python standard lib, which has a nice doc unlinke bash, and not assume they know everything about scripting just because they have spent a long amount of time writing bash script.
- rascul 3y ago> which has a nice doc unlinke bash I find the bash reference manual to be nice enough for me. https://www.gnu.org/savannah-checkouts/gnu/bash/manual/html_node/index.html https://www.gnu.org/savannah-checkouts/gnu/bash/manual/html_...