It's easy if you know how.
Archive of posts filed under the shell category.
Working with blocks in sed
How to recognize blocks of text with sed
Sanitizing files with no trailing newline
Trying to find an efficient way of doing that
Sorting with awk
How to sort data in awk
OCSP verification with OpenSSL
How to perform simple OCSP queries from the command line