: NN to numbers in .Quiz file NN awk '/NN/{ $3= ++n;} {print}' "$@"