BEGIN { system("unset tarZold$flag"); command="count ~CR~V"; command | getline; while ($2!=files) { if (substr($2,length($2)-length("_files")+1)=="_files") { system("set tarZold$flag true"); break; } if (substr($2,length($2)-length("files")+1)=="files") { system("set tarZold$flag false"); break; } command | getline; } }