#/bin/bash src=$1 dst=$2 cat ${src} | grep -E "<plate>.*</plate>" | awk '{t=$0;gsub(/.*<plate>|<\/plate>.*/,"",t);print t}' > ${dst}