awk do in simple terms?awk is a tool that reads text line by line and splits each line into parts called fields. It helps you pick and work with these parts easily.
awk, how do you refer to the first field of a line?You use $1 to get the first field (like the first word) in the current line.
$0 represent in awk?$0 means the whole current line as it is, without splitting.
awk?Use awk '{print $2, $3}' filename. This prints the second and third parts of each line separated by space.
awk?The default separator is any space or tab. awk splits lines by spaces or tabs unless told otherwise.
$3 represent in an awk command?$3 is the third field (word or part) in the current line processed by awk.
awk variable holds the entire current line?$0 contains the full current line in awk.
awk split fields by default?By default, awk splits fields using spaces or tabs.
awk?$1 is the first field, $NF is the last field in awk.
NF equal in awk?NF is a built-in variable that holds the number of fields in the current line.
awk processes a line and how you can access its parts.awk.