Set one of the most important program you need to know when writing scripts but what it is set is a
stream editor a stream editor is used to from Basic Text transformations on an input stream file or
input from a pipeline.
What is the structure of said We are starting with the keyboard set followed by some options for set
program.
Usually it means some features.
Then is the actual script which will be performed for some stream input and then we specify input file.
We can also provide input to set a program using pipe but what is the structure of it.
Set script we concede we are starting with address which can be a line number Legwand expression or
a range of lines.
This otherness means dead set command which is displayed here as x symbol will be executed for lines
we have specified in address endless byte offset script are options which can be used for some set commands.
OK let's check some example.
We are starting with the keyboard set as you can see we don't have any options.
Then is the actual set script inside single quotation marks followed by input file.
If we check more deeply the set script we are starting with others better to say with others range.
So day to day 5 then a single letter command we have D which means delete command and it is all we don't
have an additional command option so this example deletes lines city to 65.
But here is good to mention.
That said by default doesn't change input file set by default only preens.
How do I change output looks like.
So in our example set deletes the line 60 to 65 and provide that output if it deletes the line into
file output Daltex file input that text itself without any change.
Most common set commands are a visual up'n text after line the original delete button space.
It is good to know what is a pattern space.
It is a temporary buffer where a set held a single line of input.
While the editing command is applied then I command which inserts text before align.
Then we have become one it prints the pattern space.
Then we have Q Which will exits set without processing any more commands or input s which will perform
substitution.
And of course there is many more commands.
We have also some command line options for example and disables automatic printing which means dead
set.
Only produce output that explicitly told to we are to be common.
Option B allows us to use another set script.
And for example option ATA allows us to use extended regular expressions are Adorjan basic regular expression
difference between extended and basic regular expressions.
You can see indescretion now.
Basically you will use backslash allot to allow some character to have special meaning by default.
The basic Gringoire expressions are used by grep awk and set in bash scripting.
I use extended regular expressions so deadfalls intro into said command.
How do you feel a little overwhelmed Yes.
It might be because from slides is hard to learn much and because of that evil practice now in bed shell
and you will see that set commands are quite easy when you start using them.