#! /usr/bin/gawk -f BEGIN{ FS="'" } /@attribute/{ last =$0} END{ print last }