screwloose
MIS
Using either sed or awk, if I have a file that contains:
Jul 23 08:23:45 saturn
Jul 23 08:24:45 saturn
Jul 23 08:23:46 neptune
Jul 23 08:21:47 mercury
Jul 23 08:23:45 venus
Jul 23 08:32:45 venus
Jul 23 08:33:45 pluto
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
And I want to insert a blank line AFTER each new instance of a hostname:
Jul 23 08:23:45 saturn
Jul 23 08:24:45 saturn
Jul 23 08:23:46 neptune
Jul 23 08:21:47 mercury
Jul 23 08:23:45 venus
Jul 23 08:32:45 venus
Jul 23 08:33:45 pluto
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
Thanks!!
Jul 23 08:23:45 saturn
Jul 23 08:24:45 saturn
Jul 23 08:23:46 neptune
Jul 23 08:21:47 mercury
Jul 23 08:23:45 venus
Jul 23 08:32:45 venus
Jul 23 08:33:45 pluto
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
And I want to insert a blank line AFTER each new instance of a hostname:
Jul 23 08:23:45 saturn
Jul 23 08:24:45 saturn
Jul 23 08:23:46 neptune
Jul 23 08:21:47 mercury
Jul 23 08:23:45 venus
Jul 23 08:32:45 venus
Jul 23 08:33:45 pluto
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
Jul 23 08:23:45 jupiter
Thanks!!