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
@ShEv4412 жыл бұрын
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_4 күн бұрын
Make Linux Great Again!
@PyCMD-64 Жыл бұрын
great vids. no fluff, all great examples.
@sanchittayal70003 ай бұрын
If someone followed all your videos, #! /bin/bash lines=$(expr $(ls -lh $1 | wc -l) - 1) echo "$lines" would make sense. Kudos!
@marcelollivierre7073 ай бұрын
great course thank you very much I have another bug for this script Give it a directory that does not exist
@noweare1 Жыл бұрын
Thanks, this will get me into linux commands more.
@blindshellvideos10 ай бұрын
how to make it so -a or --argument can be parsed?
@Leverquin4 ай бұрын
why is $((lines-1)) and not $(lines-1)
@stanislavtodorov87053 ай бұрын
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"
@Leverquin3 ай бұрын
@@stanislavtodorov8705 thank you 💜
@jeffreysmith9837 Жыл бұрын
why no mention of $@
@Leverquin3 ай бұрын
@@jeffreysmith9837 what is that
@flowerpowerme1232 жыл бұрын
Is there a difference between arguments and parameters?
@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.
@MichaelDeBusk2 жыл бұрын
I don't understand what makes it a good idea to put the error check after the operation.
@ethanrivers40572 жыл бұрын
What do you mean by after the operation? The check is performed by the if statement.
@MichaelDeBusk2 жыл бұрын
@@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.
@ethanrivers40572 жыл бұрын
@@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 Жыл бұрын
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.