Bash Scripting for Beginners: Complete Guide to Getting Started - Arguments (Part 16)

  Рет қаралды 32,605

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер: 29
@jondo-vh8tx
@jondo-vh8tx Жыл бұрын
been looking at video 15 and now time for 16, before that just wanted to say not even my teacher thought me linux that well. you the man when it comes to bash
@ShEv441
@ShEv441 2 жыл бұрын
I watched whole series and I really liked it. You can explain complicated topics. Will you add next episodes to series? I feel like some elements where not discussed in deep like adding flags. I would love to see more episodes for semi advanced users who want to learn more. It's hard to find such content online since most people skip it or only do basicis.
@_ryju_
@_ryju_ 4 күн бұрын
Make Linux Great Again!
@PyCMD-64
@PyCMD-64 Жыл бұрын
great vids. no fluff, all great examples.
@sanchittayal7000
@sanchittayal7000 3 ай бұрын
If someone followed all your videos, #! /bin/bash lines=$(expr $(ls -lh $1 | wc -l) - 1) echo "$lines" would make sense. Kudos!
@marcelollivierre707
@marcelollivierre707 3 ай бұрын
great course thank you very much I have another bug for this script Give it a directory that does not exist
@noweare1
@noweare1 Жыл бұрын
Thanks, this will get me into linux commands more.
@blindshellvideos
@blindshellvideos 10 ай бұрын
how to make it so -a or --argument can be parsed?
@Leverquin
@Leverquin 4 ай бұрын
why is $((lines-1)) and not $(lines-1)
@stanislavtodorov8705
@stanislavtodorov8705 3 ай бұрын
because $() is a command substitution which will run $(lines-1) in a subshell. (()) denotes mathematical operation. So in other words $((lines-1)) means "do the math and use the result here"
@Leverquin
@Leverquin 3 ай бұрын
@@stanislavtodorov8705 thank you 💜
@jeffreysmith9837
@jeffreysmith9837 Жыл бұрын
why no mention of $@
@Leverquin
@Leverquin 3 ай бұрын
@@jeffreysmith9837 what is that
@flowerpowerme123
@flowerpowerme123 2 жыл бұрын
Is there a difference between arguments and parameters?
@Samuel-pg7tg
@Samuel-pg7tg Жыл бұрын
Parameters are the names listed in a function definition and arguments are the values passed to a function - if you google arguments vs parameters there's some good info.
@MichaelDeBusk
@MichaelDeBusk 2 жыл бұрын
I don't understand what makes it a good idea to put the error check after the operation.
@ethanrivers4057
@ethanrivers4057 2 жыл бұрын
What do you mean by after the operation? The check is performed by the if statement.
@MichaelDeBusk
@MichaelDeBusk 2 жыл бұрын
@@ethanrivers4057 Your script runs the operation on an empty parameter and then decides it shouldn't have done anything. No big deal on the simple thing you're doing in this case, but on a large and elaborate script you'd waste a lot of CPU. Make the error check the first thing the script does.
@ethanrivers4057
@ethanrivers4057 2 жыл бұрын
@@MichaelDeBusk I do understand where you’re coming from, you’re right. I have a script in production that does a back up and before the operation I check that it can be done.
@MrGenbu
@MrGenbu Жыл бұрын
well it does not matter here really it is just a list command and the final output is not printed , but as you say it will be better at the top.
@NEXUSSEC
@NEXUSSEC 8 ай бұрын
Tnx superman❤😊
@13thravenpurple94
@13thravenpurple94 Жыл бұрын
Great video THank you
@subee128
@subee128 11 ай бұрын
Thank you very much
@lyrics7405
@lyrics7405 Жыл бұрын
keep it up i like your content
@guilherme5094
@guilherme5094 2 жыл бұрын
👍Thanks!
@barkhadibraahim1023
@barkhadibraahim1023 8 ай бұрын
thanks so much
@mihai6564
@mihai6564 Жыл бұрын
good video
@Alpha_Sadigh
@Alpha_Sadigh Жыл бұрын
☯🙏 Arguments.
Bash Scripting on Linux (The Complete Guide) Class 17 - Backup Script
23:39
Linux Crash Course - awk
16:07
Learn Linux TV
Рет қаралды 106 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Starting With Linux: What I Wish I Learned First
23:31
Learn Linux TV
Рет қаралды 499 М.
you need to learn BASH Scripting RIGHT NOW!! // EP 1
12:14
NetworkChuck
Рет қаралды 1 МЛН
Linux Crash Course - Managing Groups
23:43
Learn Linux TV
Рет қаралды 49 М.
7 CONFUSING Things That ONLY Motorcyclists Do EXPLAINED!
10:35
Yammie Noob
Рет қаралды 4,5 МЛН
x86 Assembly: Hello World!
14:33
John Hammond
Рет қаралды 1,4 МЛН
What is $PATH on a Linux Shell? (The Linux Crash Course Series)
21:52
Learn Linux TV
Рет қаралды 37 М.
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Null Byte
Рет қаралды 779 М.
Things I Wish I Knew BEFORE I Started Riding Motorcycles
13:39
Yammie Noob
Рет қаралды 2,2 МЛН
Что такое дагестанский кирпичный завод!
0:53
АВТОБРОДЯГИ - ПУТЕШЕСТВИЯ НА МАШИНЕ
Рет қаралды 746 М.
Лайфхак: Легально делать деньги
0:43
Американцы красят асфальт?
0:27
BAZAR CLUB
Рет қаралды 188 М.
Заставила парня продать зажигалки
0:52
Жизнь Барахольщика
Рет қаралды 3,3 МЛН