Тёмный

Concise GNU Bash: An Introduction to Advanced Usage - James Panacciulli @ LinuxFest Northwest 2017 

James Pannacciulli
Подписаться 1,5 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@RakibFiha
@RakibFiha 5 лет назад
Thank you. Please make more advanced Bash videos. Both Unix and GNU community needs more quality content like this.
@pratikshares
@pratikshares 5 лет назад
Amazing presentation. Deserves a lot more views than it does currently. Thank you.
@madakhan
@madakhan 7 лет назад
One correction at 39:41 ${#array} does not expand to the length of the array. It expands to the length of ${array[0]}, which also happens to be 3 in this case. For the array length you have to use ${#array[*]} or ${#array[@]}
@jamespannacciulli3029
@jamespannacciulli3029 5 лет назад
Excellent catch, thank you! Apologies for the oversight.
@birkses
@birkses 6 лет назад
Great content, I only wish you put out more stuff!
@SilvioDiStefano
@SilvioDiStefano 7 лет назад
Excellent talk, thank you.
@mwont
@mwont 4 года назад
Wow. learned so much from this. Thanks.
@lovelypolishperson5566
@lovelypolishperson5566 5 лет назад
Excellent lecture, very informative.
@katherinechau5594
@katherinechau5594 3 года назад
In brace expansion, what is the point of the "commas" at the start of the pattern? It was never explained I don't think. The example slide (49:38) also doesn't use commas at the start but the actual examples (49:51) all have commas in front of the patterns.
@LavkinK
@LavkinK 2 года назад
I'm sure you have worked it out by now, but just in case someone else has the same question: these commas separate variants of expansion and if nothing precedes (or follows) the comma it defines an empty pattern so the prefix/suffix is used as it is (expanded with nothing) in the resulting string. [52:02] man{,} whitch turns into "man man" is a fun example. In the example you mentioned [49:51] w/o comma at the start the first entry of an unchanged word "bash" would've been missing. At [51:03] there wouldn't have been an initial file name w/o this comma.
@michaelcluster8478
@michaelcluster8478 4 года назад
Excellent talk, thanks! Is echo > /dev/full an example of echo failing?
@bitti1975
@bitti1975 3 года назад
Not really, the redirection is setup by bash and failing even before `echo` is called. You can use a random command which doesn't even exists to get the same error: $ unknown > /dev/full -bash: /dev/full: Operation not permitted But since as a builtin echo is part of bash the distinction is very subtle.
@danydanger
@danydanger 10 месяцев назад
@james how to learn like this ...from where?
@geoptus
@geoptus 5 лет назад
Great stuff yet again, thankyou! at 1:14:30, did anyone catch the the command for expanding the variable "$fielname" on the command line - CTRL- ___ something. I can't hear it clearly enough, thanks in advance : )
@jamespannacciulli3029
@jamespannacciulli3029 5 лет назад
Ctrl-Alt-e will perform expansion on the current command line, including alias, history, and shell word expansion (including command substitution and arithmetic expansion, though not arithmetic evaluation which is not part of an expansion). It won't perform brace expansion, unless, of course, it is nested inside a command substitution, which will be executed in its entirety. This should pull up the relevant section of the man page: man -P "less +/shell-expand-line" bash This will show the current binding in your shell for the shell-expand-line function (it is unlikely this has been assigned a different binding, but this command would tell you if so): bind -q shell-expand-line
@geoptus
@geoptus 5 лет назад
Hi James, many thanks for this extra info, it's revealed a tressure-trove of cl goodness. Turns out on my set-up it's \e\C-e (raspberry pi, stretch lite, bash 4.4) - interesting 'cos for years I've been using \e\S-u to uppercase strings, I thought it was a one-off, but it seems there are dozens of these commands. Thanks for all the great content you've put out. Your pdfs are a invaluable reference.
@starmountpictures
@starmountpictures Год назад
GREAT talk THANKS
@pldvs
@pldvs 4 года назад
Awesome.
@flipinfin
@flipinfin Год назад
Great video but I don't use cat to write to files I use a while loop with printf and EOF format
@Alain9-1
@Alain9-1 9 месяцев назад
While using printf and a while loop might be more verbose compared to simpler methods like cat for basic file writing, it offers more flexibility and control over the content being written into the file
@pajeetsingh
@pajeetsingh 6 месяцев назад
35:15 Erlang has better pattern manipulation system.
@mikediaz9033
@mikediaz9033 Год назад
Monotonous
Далее
Why I Switched Back to Bash, And Why You Should Too
10:42
Это было КРАСИВО!
01:00
Просмотров 1 млн
Тестирую гаджет для роллов! 🙈
00:42
Become a bash scripting pro - full course
36:00
Просмотров 62 тыс.
A Beginner's Introduction to BASH Shell Scripting
44:24
Bash is Bloated!
11:48
Просмотров 143 тыс.
WHY IS THE HEAP SO SLOW?
17:53
Просмотров 251 тыс.
Become a shell wizard in ~12 mins
12:25
Просмотров 254 тыс.
UNIX shell expansion: proper use and advanced forms
55:07
Это было КРАСИВО!
01:00
Просмотров 1 млн