[Bash scripting #7] Update: parameter@operator for quoting strings & more + variable width in printf

  Рет қаралды 96

Mindful Technology

Mindful Technology

Күн бұрын

0:00 Intro
1:27 parameter@operator
2:33 parameter@Q: quoting a string for shell
3:55 What I used to do
8:22 The new method
11:14 Other things you can do with parameter@operator
11:49 parameter@U, parameter@u, parameter@L: changing capitalization
13:18 parameter@E: interpret backslash escape sequences
15:15 parameter@P: expand as if it were a prompt string
16:59 parameter@A: create an assignment statement (similar to declare -p)
23:52 parameter@K: keys and values, quoted
25:00 parameter@a: parameter attributes
29:02 parameter@k: keys and values, unquoted
30:22 Variable width in printf
39:25 Conclusion
41:26 Outro
Bash Reference Manual: www.gnu.org/software/bash/man...
c - Set variable text column width in printf - Stack Overflow: stackoverflow.com/questions/7...
[Bash scripting #2] Single quotes vs double quotes: • [Bash scripting #2] Si...
[Bash scripting #3] Double quotes vs NO quotes: • [Bash scripting #3] Do...
[Bash scripting #5] A quick introduction to printf (and why you don't want to use echo): • [Bash scripting #5] A ...
[Bash scripting #6] declare -p + pretty-declare-print: a better way to view values of Bash variables: • [Bash scripting #6] de...

Пікірлер: 2
@pyajudeme9245
@pyajudeme9245 28 күн бұрын
This video is pure gold, it's going to have many views. There is nothing similar on YT (at least I didn't find anything), and quoting drives everybody nuts.
@pyajudeme9245
@pyajudeme9245 28 күн бұрын
By the way. I have a question, maybe you could help me. How do I interpret "\b" (backslash) without printing it to the console? # Example with the desired output: echo -e -n "abcdefg\b\b\b" output: abcd # Another example with the desired output: echo -e -n "abcdefg\b\b\b" > /sdcard/test.txt cat /sdcard/test.txt output: abcd # Example with the not desired output: cat /sdcard/test.txt | awk '{print $0}' output: abcdefg how can I tell awk (or any other cmd that receives the output of the pipe) to interpret the '\b' character?
Stow is the best way to manage your dot files
14:33
typecraft
Рет қаралды 6 М.
Each found a feeling.#Short #Officer Rabbit #angel
00:17
兔子警官
Рет қаралды 6 МЛН
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 5 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 3,5 МЛН
Чай будешь? #чайбудешь
00:14
ПАРОДИИ НА ИЗВЕСТНЫЕ ТРЕКИ
Рет қаралды 2,8 МЛН
Unboxing of Tuxedo Stellaris 16 - Gen5
14:15
Mindful Technology
Рет қаралды 1,1 М.
Function Pointers in C++
12:41
The Cherno
Рет қаралды 380 М.
Bash in 100 Seconds
2:33
Fireship
Рет қаралды 1,4 МЛН
Debug a C++ project in VS Code
4:49
Visual Studio Code
Рет қаралды 274 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 32 МЛН
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 100 М.
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 780 М.
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 5 МЛН
ВЫ ЧЕ СДЕЛАЛИ С iOS 18?
22:40
Overtake lab
Рет қаралды 87 М.
МОЩНЕЕ ТВОЕГО ПК - iPad Pro M4 (feat. Brickspacer)
28:01
ЗЕ МАККЕРС
Рет қаралды 69 М.