Search code examples
glassfishglassfish-3

Removing Blank Lines in Log


In GF 3.1.x, the logs that are echoed to the screen in Netbeans have blank lines. Is there any way to remove the blank, so there is less to scroll through? I know this is minor, but anything to make the day more productive....

INFO: 08:40:33,170  INFO RequestMappingHandlerMapping:186 - Mapped "{[/search],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" 

INFO: 08:40:33,171  INFO RequestMappingHandlerMapping:186 - Mapped "{[/search],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" 

Solution

  • $ sed '/^$/d' blanks.txt > without_blanks.txt