Тёмный

Shell Ninja: Mastering the Art of Shell Scripting | Roland Huß 

DevOps Conference
Подписаться 7 тыс.
Просмотров 24 тыс.
50% 1

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

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@rolandhu8569
@rolandhu8569 5 лет назад
Sorry, forgot to repeat the questions in the talks. Try to remember what they actually were ;-). Sorry for that. 1st question: "Is the source code online ?" 2nd question: "Why don't you use --getopts ?" 3rd question: sorry, I dont remember ;-( 4th question: "Why are you using -- options for mandatory arguments ?"
@calebluis2910
@calebluis2910 3 года назад
you prolly dont give a shit but does anybody know a tool to get back into an Instagram account? I was dumb forgot my login password. I would appreciate any tips you can offer me
@brooksrafael5246
@brooksrafael5246 3 года назад
@Caleb Luis instablaster ;)
@calebluis2910
@calebluis2910 3 года назад
@Brooks Rafael I really appreciate your reply. I found the site through google and Im in the hacking process atm. Seems to take a while so I will get back to you later with my results.
@calebluis2910
@calebluis2910 3 года назад
@Brooks Rafael it did the trick and I actually got access to my account again. Im so happy! Thank you so much, you saved my ass!
@brooksrafael5246
@brooksrafael5246 3 года назад
@Caleb Luis happy to help :)
@SamirAbuLina
@SamirAbuLina 4 года назад
A really nice talk, thanks. A few points to make your next talk even better: - talk a bit slower - try to focus on one issue at a time (you break the context a few times, maybe practice the whole talk so you identify the "hops" beforehand).
@M4r0t
@M4r0t Месяц назад
Whatever is the debate about the `set -ue`, I think it is a must **while you are writing the script**. IMO, it helps. But yas, once your script is in production you have to be aware about what unwanted effects it can lead to.
@fratquintero
@fratquintero 2 года назад
at 22:25 a "return command" is missing, otherwise "echo false" always gets executed
@Nesdac-k1l
@Nesdac-k1l 10 месяцев назад
nice tips! why do your filepaths use backslashes? it doesnt look like you are on windows?
@david2358
@david2358 5 месяцев назад
it is linux not windows
@Nesdac-k1l
@Nesdac-k1l 5 месяцев назад
@@david2358 then why the backslashes? unix operating systems always use forward slashes....
@eclypze_
@eclypze_ 8 месяцев назад
What IDE iss thisguy using
@MrFefeleaga
@MrFefeleaga 4 года назад
Hi. What is the logic of the brackets in the ARG sentence? ARG=("$@") Why didn't you write like this, for instance? ARG="$@" Thanks in advance!
@MrFefeleaga
@MrFefeleaga 4 года назад
Ah, never mind, it's an array :)
@hhskladby1596
@hhskladby1596 3 года назад
Brackets mean caling a subshell, they are not connected to arrays directly, but assigning an array directly to a variable would coerce it to a string, while assigning a subshell call to a variable would keep the array characteristics of the positional parameters line "$@". Sometimes this looks clear like a fresh morning, sometimes it drives you nuts.
@hubstrangers3450
@hubstrangers3450 5 лет назад
could you add the git repo please
@DevOpsConference
@DevOpsConference 5 лет назад
Here you go hub strangers: github.com/ro14nd-talks/shell-ninja
@SamirAbuLina
@SamirAbuLina 4 года назад
A really nice talk, thanks. A few points to make your next talk even better: - talk a bit slower - try to focus on one issue at a time (you break the context a few times, maybe practice the whole talk so you identify the "hops" beforehand).
@michallasan3695
@michallasan3695 2 года назад
Talking about mastering and you use single [ test and $(...), no coproc, poor.
@cubernetes
@cubernetes Год назад
[[ is not posix compliant, but yes, using $() when not needed is not good
@M4r0t
@M4r0t Месяц назад
coproc is a bashism, plus, learning people how to handle file redirections seems more useful imo. (As someone in charge of teaching Bash I can’t imagine introducing coproc before the pupils have in mind how operation on file descriptors work) $() still is useful (but I admit I see too much some `echo "$(shit)"` where `shit` would suffice), if, as a `|` could be unnecessary used. I join you on [ vs [[, on e modern Bash nobody could have a single reason to use a single bracket ([[ being a keyword, ot a built-in).
@michallasan3695
@michallasan3695 Месяц назад
@@M4r0t Coproc speeds up bash, making it possibly faster than dash due to getting rid of $(...). Also, do you know this stuff?: isPositive() { [[ $1 -gt 0 ]] } ... if isPositive $val; then ... echo 'true' instead is just stupid. By this, you recognize who is a noob.
@M4r0t
@M4r0t Месяц назад
​@@michallasan3695 My point is that it is (imo) more important to teach how to do what coproc does using file descriptors and redirections directly.
@shakibamoshiri2503
@shakibamoshiri2503 2 года назад
disappointing :( there was no mastery nor was there any NINJA If that buggy code was a pull request to me , I would reject that
@Daligliding
@Daligliding 2 года назад
Gee... people are really mean these days
@M4r0t
@M4r0t Месяц назад
Maybe “mastery” in Bash, or coding in general is not something you’d get in videos, but rather reading the fine, text, manual.
Далее
Become a bash scripting pro - full course
36:00
Просмотров 61 тыс.
ОТПРАВЬ СВОЕЙ ЛП/ЛД
00:10
Просмотров 134 тыс.
Bash Scripting Full Course 3 Hours
3:08:04
Просмотров 1,2 млн
Bash Scripting Tutorial for Beginners
47:57
Просмотров 506 тыс.
BASH Environment | Aliases, Functions and Scripts
49:26
Bash Scripting - Variables, Arrays, If-Then-Else
38:52
Lecture 1: Course Overview + The Shell (2020)
48:17
Просмотров 751 тыс.
Learning Awk Is Essential For Linux Users
20:02
Просмотров 301 тыс.
Advanced Bash Scripting Tutorial
1:00:27
Просмотров 81 тыс.