Let's print something out in this lecture we will use only big in section and in that section inside
curly braces.
We will print Hello.
So hello.
Inside the book for the Asian marks
and we don't specify any file here.
What has happened here.
Begin the section in the room before processing any line.
The main body of AWC and we don't have here any iron because we didn't provide input file or output
from eco command.
So it is completely OK to use only begin section.
Basically what we did is same as if writing ICO.
Hello.
So let's look also another section of all program here.
We are using the main body section of AWC which is process for each provided line and each time I push
enter it means each time I for this example provide empty line org will print Hello.
Great
but what would have happened if we used now only N.S.
and S..
Is it only when Alk. processed all the lines
and scenes.
Here if you don't know where it is at the end of it'll never print Hello.
So we need to terminate using control-C.
Now let's provide some input into all using eco command eco.
One two three four.
Then pipe
then keyboard awk and inside main body section will print hello.
Dead means dead.
All the print Hello.
For each record for each line it finds and since we have only one line it will print hello one time
if we provide.
Instead of course some file it then lines we would see printed.
Hello ten times.
So let's create some file called Hello dot text and create fuel lines for example.
First line
second line second line for line and fifth line.
Now let's print hello for each line for each record of provide the input file Hello dot text
and AVC.
Hello printed five times.
Great we can provide data to all.
Also using 5 so we will use by now
and the output is decem great.
Now to show clearly how begin and N.S. behaves we will specify Firstly begin section and we will print
here begin part in the main body will print again.
Hello
you can see that begin.
Part was performed before the main section started.
Operated commands for each line where it prints hello so the printed beginning part 1 time and as we
have 5 lines in all the text we see 5 time printed.
Hello.
Now we can add also and S..
And in a dead end section will print and bar
and after the main org section printed 5 time.
Hello.
We see also printed and anti-pot great.