I know there is a similar question in SO How can I replace mutliple empty lines with a single empty line in bash?. But my question is can this be implemented by just using the <
Give this a try:
sed '/^$/N;/^\n$/D' inputfile