Right now, it's time to talk about how to find a specific.
OK, so in this lecture we will do two commands, the command and rooked command.
OK, now let's start with the command.
So let's have a look here.
So let's make this text file, which is the text.
It's used in the text command, that command.
It would create a text file for you.
So here you go.
And it's got whatever value it took in the embedded and use the direction.
Don't worry.
We will talk about these later on.
No worries for now.
So echo this and put it inside the text.
OK, let's clear the screen and have.
So it is it will be more clean.
No, I will use the paint command.
No, I want to search in the current directory which is not or where I want to search for this fight.
So for example slash which means root or slash home OK.
Or whatever.
Fine.
But here the absolute best.
OK, or that which is the current path.
And this means that find not dash name.
So this is the name of the fight which is near the text.
And it's pretty interesting that you can see that.
Yeah, we found it and this is the back for it, which is dot slash.
The dot means the current directory which is about which is home.
Oberto OK.
Now, if I found or if I would be, but this time that is capital, you can see we cannot find it right.
So to to do such a thing or to remove such a thing, we would use the I mean, that's I am not that
name, which means ignore the case.
So if I type here.
Yeah.
We found did we ignore as you can see.
Which means ignore the case.
So far so good.
No.
What if I want to do specific things with this command.
OK, sorry.
With this file that we found.
So for example the output that's less which means different the output as a list format.
But by the way, this is the NSA, which is from the find.
This is not the system unless I think under the hood they use the alias, but they add a specific things
that appear like this one, all this things, whatever.
OK, now what if I want to execute command after I found this file?
So for example, I am searching for temporary fight and this because I want to delete them.
So I have to do that.
I will use that option.
So Desh exec and but whatever option you want.
So unless Stachel for example, this is the commands I want to execute and don't forget we put them
that Brace's here or the curly brackets, the backslash dot.
OK, and you can see that.
Yeah, we found it.
This is the file.
And the razmi defined the user, the group that permission and whatever.
OK, so actually we execute the command for this file that we found or these fights that we found.
OK, so for example, so let's have t one text.
OK, it is clear to one, T two to three.
OK, and if I found it again.
Here.
Ignore the case, we only find one, of course, because we are using the tactics.
Now, what if I typed instead of the text that wild card or the arrest shift eight?
So like this you can see that we have found one, two, three, four, or that takes all of them have
been found.
OK, because star means everything, everything possible, which is the wild.
Well, I'm assuming that you are familiar with that anyway.
So let's clear the screen and let's see what we have.
So, for example, these are temporary files in the system.
Look, find, for example, or system errors or something.
I did need them.
For example, I want to archive them and we already have a process archiving that, but I want to delete
it when I'm just assuming this is the case, by the way, or if that can be handled by the current job,
you can you don't need to do that manually.
Actually, this is something automated can be done or jenkins' or whatever.
But anyway, don't worry about the jobs, by the way.
We will talk about it.
I want to find that Dashi name and the name is Twista, which is anything.
And I want to execute this command, execute this command and this command this time would be up and
up and with the curly brackets, Slashdot again, like this.
So if I type this.
So maybe I forgot something, so, yeah, it will be like this in time like this.
Yeah, yeah.
Did you know why this happened?
So actually let's have this time and see why this happening, because you can see that there is something
here.
You know, the case is here to get capital this time.
So you can see that.
The thing is the problem is with the Kessman.
So if I type Dashi name, I need to provide the T as a capital or the letters as a capital, which means
either capital or small.
OK, this is how find command work.
OK, so it's clear.
And let's have another look.
This time I want to remove.
All right.
So our under-sheriff.
So let's have a look.
You can see that there is something here.
Yeah, we already did that, but if you notice here, while we are searching, we looked for this and
this and this and this.
But we find this, which is total zero.
So we do not need so that we consider to be not found.
So we can see that the gas to temp or something or dirty or whatever it considered to be, not anywhere.
You can see that we already deleted deleted, we already deleted the files and everything worked correctly.
Now the other command, which is delicate.
OK, so let's have another fight, which is the again.
And I am sorry about this, so and I will copy this file and put it inside the temp directory, but
again, don't worry about the copy command, the command, renaming the files, names or wherever,
or if that would be handled in the next lecture.
But don't worry, so far now for me, copy from source to destination and I will nemati the text or
as is anticipated there.
So if I type the command to the text.
You can see that it will start looking for anything fixed, so here is the text, whatever something,
and you can see that if I look here, you don't know or there are nothing called t the text.
OK.
So I need to provide another command and this command code update DB, so this is to update the database
for the OK to be working so pseudo.
For the thing, and yet you can see that we already updated that and now it's time for running the humanity
to text.
And you can see that this time, yeah, we found it so you can see that it is here at the home of Untoasted
26th, but by the way, we can't find it in the temporary.
Maybe he didn't have access there or I don't know, after.
But anyway, we have it here and everything is working as expected.
Or thanks for what?