Comment on Ask HN: How does one practice day to day shell scriptingComments−fiedzia2yDon't. My rule is if it's more then 3 lines or more complex than simple commmand call, it'll be written in Python. It will be easier to read for everyone around and avoid all the shell footguns.−mindentropyOP2yI work in embedded and many times I will be dropped to minimal shells where I don't access to interpreters like Python.Also whenever I need to do some repetitive file operations writing shell scripts in the command line becomes important.
Comments
Don't. My rule is if it's more then 3 lines or more complex than simple commmand call, it'll be written in Python. It will be easier to read for everyone around and avoid all the shell footguns.
I work in embedded and many times I will be dropped to minimal shells where I don't access to interpreters like Python.
Also whenever I need to do some repetitive file operations writing shell scripts in the command line becomes important.