All right.
Now it's time to talk about searching and manipulation.
Now first, let's start with the great command, the great command search for The X-Files for the occurrence
of a given regular expression and output.
So it stands for no grip, OK, or no regular expression?
OK.
All right.
Now let's have this command that Dallas and we learned that using the L e four list long list format
and for all the finds, it would show us something like this.
As you can see now, if I want to search for the desktop, for example.
OK, so let's clear the screen, unless that Shelly then using the pipeline as we learned previously,
using their grip command.
So the output of this will be considered input for this so grip then in double quotation, all without
double quotation.
Let's put this stop and remember, this is a case sensitive so as you can see it found.
The desktop.
Here it is.
OK, now if I put this this mall like this, it will not show anything.
But if I put it or use the Dash II flag, which means ignore their case sensitive.
So it will put it, as you can see, is capital.
Yeah, the character or this mall will do their job.
All right now, by the way, men grip.
You can see that it has a lot of options.
Actually, grip is a huge topic here because it has a lot of options, flags, whatever.
OK, cool.
Now let's talk about sin.
It is about polystyrene stream, Ed.
It is also a very complex, so we would only briefly scratch its surface, OK, here.
So, for example, it's clear the screen looks equal here, for example.
Hello, there I am.
Zero.
OK.
So this will, Brent, hello, there I am, zero now in the output booth using the pipeline, then sit
and then put single quotation.
Now here we would put that slash that zero and then slash, but one.
OK, so this means will.
Replace the zero with one.
OK, so Sid used for bliss and text manipulation, so you can see that.
Hello, there I am.
Zero, it was there.
Hello, there I am.
I am zero now.
Hello, there I am one.
OK.
Could now also we can use the cut command, and this is a command is quite handy.
So let's clear the screen again.
Let's use this in the same sentence.
Hello, there I am.
Zero.
OK.
So hello, there I am, zero output this and use the cut command.
OK, now cut.
We will use the dash of option, which is the field.
No, we are cutting as you can see the field.
No, it will be tool, for example, or as you can see, tool.
Now follow me.
For now, I know you got confused.
Dash NI, which is that the limiter or for the field delimiter and the delimiter will be the space.
OK, so this means that cut the second presenter I will show you.
So you can see that it is hello there.
As you can see, I am zero and delimiter.
Here is space.
So which means that this is the first one.
As you can see the delimiter what distinguish between these two is there's space here.
Hello, space.
Their space I space.
I'm space zero.
OK, so the delimiter here to distinguish between their characters or what is space and cut the second
one, which means that this is the first one, the hello and this is the second one.
So if I want to have the zero, what should it?
Yes, you are correct, I should say this from two.
From number two, I mean to right.
And you can see that one two three four five.
So it will cut five here.
By the way, if I have something is, for example.
Hello there.
But to hear or comments like these.
And but this it will not work because you can see there there are no space here.
But but it is listed here like this and press enter.
It will give the same result because this is the first one the second, third, fourth and fifth.
OK.
So far, so good.
Now finally, we will have that A.W. Care Utility and A.K. actually is a programming language designed
for text processing and is typically used as data extraction and reporting tools.
OK.
So for example, let's have this eco.
Who am I, for example?
And then the outward let's use kid.
And then we will use single quotation inside that we open places and then we print.
Shift, though, not sign of shift for which means do not sign one.
And but this day.
Dollar sign.
Two or three or two later.
So this will show us something like this.
Who?
OK, so this is where the first one, the second one?
And here is the third one.
So if I want to print, for example, three here like this, it will bring the eye only.
So one to three.
OK, by the way, the EDUCARE is a huge again, but we barely scratched the surface here.
I'm just giving you a high level understanding of the tool or that or this language.
Also, we have the head command.
So for example.
Let's get the results fight here.
For example, the one we have previously on the test.
Let's see what's inside it.
You can see the test.
It has that desktop document downloads, whatever.
Now we can use the hit command.
By the way, men hid, it will print the first number of fights or part of fights.
OK, so clear the screen hit this text.
You can see it will hit or print the first 10 lines of the test.
But this because it is already have, I think it is 10 lines.
So let's hit the five here.
But the Dash five option, it would bring the first five lines.
OK.
As you can see, one two three four five only.
And again, we have the kill command.
Dash five as well.
Just the text.
And this will print that the last five lines of the fight.
OK, so far so good.
By the way, we can hit.
The first.
Lines and we can take the first two lines, which is music and pictures, so it will be like this and
tell this to.
Like this, it will show us this will give us the first five lines, and till that stool, which is
the last two fights.
Right?
Could.