Folks will come to another section from this
course, taking to another level to the next level. Next
section 11. Let's go.
Alright, in this video. I'm going to talk about Josh's creepy. So
it's actually not related to our topic. But as
we talked about a lot about a Linux and
conduct, you know, we can give to
it. So I was like it's a good idea to talk about imagine scrubbing
because if you're learning
Linux and any related operations
systems eventos, and to us or
Fedora, bakbox any
distribution of the Linux Unix or the beans.
Need to know about your security. This is very important and
you need to know it. So I was like why? I don't have a tree on it,
try to give some example try to write
some program and I'm actually to automate
a programs and everything. So let's
go.
What is better scraping before going to try
example and everything? You may Wonder. All
right, what is better skipping a shell script? Or
meshes group is a computer program designed to be run by
Unix shell. A common line, interpreter, and
a various directed of shell. Script are
considered to be scripting language. Typical Persian
performed by shell scripting code defile, my operations program,
execution, and printing is and automations programs.
This is actually try to animate the things try
to run a. For example, the cat program, languages python JavaScript
Java C++ too. Sure, but
serious level programming languages, but in a
Unix shell. All right, let's go throw lab.
Here we are in our lab this time using Center 7,
like the use your last opportunity sound, which was
callanetics. Your is on it.
So, I mean my directory called bash.
If you want to put
all your script in One Directory Juniors,
have got to you are and your directory
name, which is easy. I talk about it first and
cd2. All right.
Let's create our first program.
So one important thing
is that if you remember in a part of languages, when you
run a program in was that pie, but here we have dot
SSH, which stand for special
scraping, or shovel scraping. So be
aware of that and if you want to run your program you need to have
dot sh extension. All
right.
Okay, you're right. I want example before words,
kind of delegates. But one of the most important things you need to do is
that you have this on the first line,
which is in very important, and not forget to
add it in, every just give me right. It's called the shebang
line and you need to add it in your
first line of your program. So this is a
All right. So I'm going with
a z 1. As you know, we have echo, which are talked about in first
or second section in this course to
come the like using crane something. So I'm going
to say, hello word. Typical first
word in your programming languages with a smiley face
here. I'm going to close this, and
then save it and do not forget
to give the write permission to it.
That's it. Then run it like this.
Here we go. We have a print hello world in the
smiley face here.
Let's go to our file again.
Let's close the page. We don't want to go anymore. Let's
actually run the Linux command and underlings command
for the powerless that she'll, this will happen
here.
All right. We have less harsh l.
Result out here. So what happened? If
we give another directory of it?
Oh, right. It shows all the files in
our home directory. That's great.
To the page. Go to come on and
82 file again. So now I want to
do like your next level
and a little bit more complicated.
So I'm going to use in the well, you called the
great week. I'm going to visit.
Into one come.
W.
Welcome.
And them. And why will he wrote called user?
If the dollar sign?
To run this command called.
Who am I so where's comment?
Well, before this run I try
to find out which user or using now.
and,
Another wire tool called a because of want to
run and dates Commander Linux
press.
clay, because it
and go to next line can always use.
Something like complimenting are commenting on Europe code,
but let's come on.
It's very important when you back your code can understand what
you do. Exactly. And then I'm going to use a gecko again
to print.
Not just the word. I'm going to use my
rival color coating.
Back.
User.
It's at a smiley face here to all
right.
and then,
Say today.
It is and what it will be.
Great day.
then actually going to occur
whenever Frank here says,
Your Bash.
Shell.
Where's Aaron?
Is.
Good luck.
Okay, trust right? See what's happened now.
Okay, we did something wrong here. But
I'm nine and align oven.
It's great to know. All right, it
said.
Now, what we do wrong?
Okay.
That's great. So it says welcome back.
My username and today is Saturday.
Have a great day your best. She'll version. He's to
version and the release and says good luck. Let's take a
look at that.
Come on, do it now.
So here we said why people called welcome
and then we serve over here, call user to
run a w**** my and day to
call the day and tell us which
day we re.
And the end it was like, okay, Echo this
variable, which is welcome and
said back, and welcome back and available user
which were where is 8, and then today's
the day, that's can find out which they
use it. And so have a great day or
We can say, hike.
You like this actually?
So happy.
Day, right.
So, happy Saturday.
And at the end we ask it to shorts to
mash wersion it shows. So this
is example and simple things in
Russia, scraping variables and stuff. Let's
back to PowerPoints.
If it could be fond of Russia, script, and what is it, and why
we needed exactly and
shoot example, trying to run a script and
try to explain how good the repeatability tasks and
automated tasks kind of Linux file systems, and
turn to show an example by running the 23
program.
The next we are going to be n membership, scraping and we're going to
combine and nylon, which is a go-getter.