Ask HN: How does one practice day to day shell scripting
As a developer my job does not involve day to day shell scripting. It comes up occasionally and due to this I face a problem now where I forget the syntax and will have to look it up again which takes a long time. I want to improve on this and would like to be fluent and for this I need to script on a regular basis.
I would like to know how people of HN keep in touch with scripting on a regular basis as a part of your job and what are the practices that you follow.
4 comments
[ 4.1 ms ] story [ 242 ms ] threadAlso whenever I need to do some repetitive file operations writing shell scripts in the command line becomes important.
There is also a shorter, HTML version at the same site: https://linuxcommand.org/lc3_learning_the_shell.php
I'm trying to get a little proficiency in all this, and just yesterday I went through the "Further Reading" sections at the end of each chapter, and captured all the likely URLs for further investigation.
One that looks really good is Dylan Araps' "Pure Bash Bible" ( See https://github.com/dylanaraps/pure-bash-bible ) Confession: I found a PDF copy at Libgen, but don't tell anyone. This and the Shotts book have also been thoroughly discussed on Hacker News in the past. (I.e., search on the two titles and you'll probably get all the opinions that you can stand, plus maybe some more hints.)
Bash is profoundly weird, but if/when you can make it work, it's slick.
This is also referenced by Shotts, and has been discussed on Hacker News -- not to be missed.