rolfn / texlive-dummy-opensuse

A "dummy-package" for TeX Live
Other
17 stars 2 forks source link

fix: awk select correct column if some packages are installed #1

Closed georgwassen closed 9 years ago

georgwassen commented 9 years ago

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.

rolfn commented 9 years ago

Yes, you are right. This is a better solution. Thanks.