A working notebook on technical topics like Linux, networking, security, and AI—field notes, experiments, and things I don’t want to forget.
Monday, June 27, 2016
Parameter Expansion in Bash
It has been so long since I have scripted (back then I used Korn shell), that when I started looking at some advanced Bash, and started seeing some very weird syntax, I had to go research it.
It turns out that these "weird things", are a feature in Bash called Parameter Expansion.
http://wiki.bash-hackers.org/syntax/pe
Bash is "Borne Again Shell".
The Borne shell was the original shell, and then Korn shell became the shell of choice, replacing Borne in many cases, in the 90s.
Now, Bash has apparently re-taken Korn shell with these kinds of funky features.
They don't make Unix any easier to look at when you see this stuff. Although, power and flexibility is the tradeoff. Apparently. More power, less keystrokes.
Subscribe to:
Post Comments (Atom)
NVIDIA Issue Back - I Think We Know More About the Cause
This morning the fans were running on the server. Apparently, ollama will fall back to the cpu if the gpu stops working or becomes unrecogni...
-
After finishing up my last project, I was asked to reverse engineer a bunch of work a departing developer had done on Kubernetes. Immediat...
-
Initially, I started to follow some instructions on installing Kubernetes that someone sent to me in an email. I had trouble with those, s...
-
The process I have been using up to now, has been to download the generic cloud images from various Linux Dis...
No comments:
Post a Comment