Skip to content

Comment on Ask HN: How does one practice day to day shell scripting

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.