I posted awhile ago asking for suggestions on how to extract
multi-line fields that are separated by 5 newline characters. I found
the following one liner that does it:
cat ${1} | tr '\n' '_' | sed s/_____/^/g | tr '^' '\n' | grep "${2}" |
tr '\n' '^' | sed s/"\^"/"_____"/g | tr '_' '\n'
Does anyone know any simpler/faster/more elegant way to do it?
Zack