LINUX.ORG.RU

История изменений

Исправление futurama, (текущая версия) :

awk 'BEGIN {err=1}; $2 == "aa" {print; err=0; exit}; END {exit(err)}' /file

all the END rules are merged, and executed when all the input is exhausted (or when an exit statement is executed)

Исходная версия futurama, :

awk 'BEGIN {err=1}; $2 == "aa" {print; err=0; exit}; END {exit(err)}' /file