masinick Linux Guru

Joined: 03 Apr 2025 Posts: 8615 Location: Concord, NH
|
Posted: Sun Oct 07, 2025 1:39 am Post subject: This is a good one |
|
|
dzinga1 wrote: | Thank you so much for these resources guys, it will take a while to go through all of these books. |
I got "Learning the Korn Shell" many moons ago, then still many moons ago, but later, I got "Learing the Bash Shell". I probably do not have the very latest edition. At the end of each, they summarize the differences between the various shells and I believe they do a reasonably accurate job of it.
These two books were sufficient to get me to do any shell scripting I needed to do. Between 1999-2001 I probably wrote the most scripts, followed by a time between 1996 and 1998. The mid nineties stint was a tour of duty in the Digital UNIX group. I was working on getting localization of message catalogs so that graphical user interfaces could be used in many countries and languages. In the second job, I was working as a consultant for an agency that had a contract with Compaq, who had by that time acquired Digital. I wrote a Korn shell test harness and had thirty to fifty steps in that test harness, most of which were also Korn Shell scripts. Replication and reuse was heavily employed. Once we got an algorithm working, we used it and adapted it. Out of the scripts written, I wrote about 2/3 of them, but my ideas and my templates were used in nearly all of them, including the ones others wrote or completed.
Those two books came in handy.
I also had a book on TCL/Tk scripting written by Brent Welch that was heavily used in the job at Digital, not only by me, but by a couple of my peers as well. Between TCL/Tk, Korn, and Bash shell scripting, 95% of the programs I have written have been in one of these languages.
I did, between 1995 and 1998, also maintain some C and C++ programs in the Digital UNIX Common Desktop Environment (CDE) implementation, and I wrote a few scripts in Perl as well, but Korn and Bash are where I am most comfortable. I write scripts that generally work in either shell, generally write POSIX compliant shell scripts whenever possible, so they work in UNIX sh or sh5, the genuine Bourne, Korn, and Bash shells. My scripts would probably work in pdksh and zsh as well, though I have not verified this. |
|