# /* vim: set filetype=awk : */ -*- awk -*- BEGIN { Want=1; IGNORECASE=1; } /@attribute/ { $1=$2=""; gsub(/[{}' \t]/ ,""); sub(/^[ \t]*/ ,""); sub(/[ \t]*$/ ,""); N=split($0,Words,",") } /@data/ { exit } END { if(Want) { print Words[Want] } else { for(I=1;I<=N;I++) print Words[I] }}