Skip to content
Advertisement

Adding additional newline between each line

I am analyzing log files from my server(particular few lines from there). But those lines are having around 1000 to 2000 characters in length.

Here is an example how the lines are coming out with grep and less with following command.

JavaScript

Output:

JavaScript

But its hard for me to separate them as those are screen full of texts(also not pleasant for eyes either). I want to have my output like blow:

JavaScript

And I have modified my above command with sed:

JavaScript

It didn’t work, so I tried with tr next:

JavaScript

It didn’t work with me either. What am I missing here?

Advertisement

Answer

This might work for you:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement