A book is one way to go, especially if someone trusted recommends
the title.
As for me - and this isn't bash scripting - but I've learned Python just using videos on YouTube coupled with asking AI Helpers {Chat GTP,
Gemini, Claude, Deepseek, Copilot} either questions I want answered
or, more importantly, providing it with some code I wrote and asking it
two basic questions:
1) What does this code do?
2) Are there any problems this code might cause or side effects I
should be aware of?
Those two questions plus a copy of my real data I want to work on
so that it doesn't make a mistake and delete or corrupt my real data
have allowed me to make a lot of progress without spending a
penny. I suspect this would work well for you if it suits your learning style.
I see plenty of videos on YouTube about bash scripting.
All of the AI helpers will answer 20-30 questions a day for free so
there's no cost involved, and you can ask each of them the same
questions to get multiple points of view on solving your problems.
Any knowledgeable AI user will tell you: AI*cannot* be safely used
unless you already know what you are doing and can review the results
before running it.
<hehe>
I sense a certain overriding fear about the future...
</hehe>
To each his own. I agree with you in general - don't trust AI with
anything important. If you prefer then 'trust but verify'.
I'm not big on the AI thing yet either. Reminds me of that movie
Terminator and a few others. I'm not real sure about us going down that road myself.
One thing I like about the book I linked to, it is new. It should be
good for all the new versions of software. The bad thing about being
new, no one has wrote a review on it yet. I was hoping someone here
might have bought a copy or knew someone who did. I think I'll risk it
and just buy the thing. I'm not looking to create a new distro or
anything so it should hopefully be good enough, if I can understand what
it is saying.
Like that command mountpoint. I was wondering how one can check if something is mounted or not. No idea that existed. o_O
I'll post back when it comes in and I get a chance to read it. If I can figure out what it is saying, it should be good for almost anyone. 😂
Thanks.
Dale
Howdy,Advanced Bash-Scripting Guide (https://tldp.org/LDP/abs/html/)
As most know, I have very basic script skills. Most of you wouldn't
even call my stuff scripts most likely. I'm not sure if they meet the definition either. I have quite a few "scripts" that I use to do all
sorts of things. I use scripts to unlock and mount encrypted drive
sets, update backups and all that sort of thing. I'd like to add some things to my little scripts but don't know how. I know it can be done tho. Example. I'd like to add a section that when I run a script to unlock and mount a drive set, I'd like it to check and make sure it
isn't already open and/or mounted. If it is not one or both of those things, then do whichever one, or both, that are not already done. For
my backup scripts, I'd like to add a section that makes sure the drive
set for the backup is unlocked and mounted first. If not, print out
that it is not mounted and stop. I wouldn't mind learning some other
stuff to. I just want to keep the cost down a bit, used is also a
option if in real good shape. I also don't want to buy a book that
doesn't have what I need.
So, I'm looking for a book, paperback would be nice but hardback is fine too. I found this. I may look for a used version elsewhere too.
Reading what is described, this sounds like a good place to start.
https://www.amazon.com/Super-Easy-Linux-Bash-Scripting/dp/B0F7GF439K
Any thoughts on one I linked too? Will that be OK for me to start out
with given my VERY basic skills? Know of something better? When I was
a kid, I was pretty good with BASIC on the old Commodore VIC-20 and 64.
That was a LONG time ago tho.
On Thu, 5 Jun 2025 at 19:56, yahoo <mentadent47@yahoo.com> wrote:
Advanced Bash-Scripting Guide (https://tldp.org/LDP/abs/html/)
Available for free online so you can see if all you need is in, or in
printed version from various resources. Full of code snippets to get you
started.
Also the bash book from the bunch of programming books created by the StackOverflow bunch a few years ago. I remember those got good
feedback.
https://goalkicker.com/BashBook/
Regards,
Arve
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 487 |
Nodes: | 16 (0 / 16) |
Uptime: | 151:22:09 |
Calls: | 9,660 |
Calls today: | 2 |
Files: | 13,709 |
Messages: | 6,166,110 |