awk uses $2 to print the second word of each line of zypper search texlive output. If some packages are installed, the first column
contains i and the second word will be |. If the field separator
is set to -F '|', awk prints the second column containing the
package name.
awk uses
$2
to print the second word of each line ofzypper search texlive
output. If some packages are installed, the first column containsi
and the second word will be|
. If the field separator is set to-F '|'
, awk prints the second column containing the package name.