Questions
- What are the two parts of an
awk
command? (Choose two.)- action
- expression
- pattern
- command
- E. order
- What does
{print $0}
do in anawk
command?- It prints the name of the script that you’re running, because
$0
is the bash positional parameter that hold the name of the script. - It prints the value that was assigned to the
0
variable. - It prints all fields of a record.
- It’s an invalid command that doesn’t do anything.
- It prints the name of the script that you’re running, because
- You want to perform an exact, whole-word match for all lines that contain a certain text string. Which of the following
awk
operators would you use?==
=
eq
~
- Where is the best place to define values for
FS
andOFS
?- In the END section of an
awk
command. - You can’t. They already have pre-defined values.
- In the...
- In the END section of an