awk '/fileid/,/^-----/ { /specificdata/ { print } }' logfile