Quote:
Originally Posted by
freddie50
A last question, please.
Any other good reading beyond your answers to learn how to properly code in Bash?
A tutorial book?
Some classical script examples in a book, a website, or maybe a reference developer on github or
Code Snippets - Snipplr Social Snippet Repository or something else?
Some other forums maybe too?
If some answers or advice cannot be given publicly, please drop me a quick message.
Many many thanks for your help!
Kindest regards,
Freddie
If you find my suggestions informative, you can search this site for my 7,000+ posts.
I'm old fashioned and taught myself how to use UNIX utilities and the C programming language by reading a PWB UNIX manual from cover to cover three or four times making sample scripts and programs that used utility options I had never noticed before, used C functions I'd never heard of before, etc., until I figured out how they worked (or found someone with more experience than me to explain it to me). When I found bugs in the man pages, I filed bug reports and suggested better wording and examples. Eventually they started asking me to review man page changes new man pages for new functions and utilities. (But, of course, that was well before there were on-line tutorials or a long list of good books. And, hard copy manuals are harder to find now.)
To learn how to use
bash on your system, I would still strongly suggest that you read the
bash man page on your system very carefully. At first, some parts of it may look cryptic and incomprehensible, but with a little practice reading other man pages, you'll find a wealth of information there.
To write code that will work on a wide variety of BSD, Linux, and UNIX systems, look at the
man pages on this site and select the
POSIX 1003.1 man page set. If you restrict yourself to the utilities and utility options described there, most of the code you write will work on most systems.