Skip to content
Advertisement

Tag: tr

using tr to strip characters but keep line breaks

I am trying to format some text that was converted from UTF-16 to ASCII, the output looks like this: The only text I want out of that is: So there is a line break “n” at the end of each line and when I use It is stripping the new line as well so all the text ends up in

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. Output: But its hard for me to separate them as those are screen full of texts(also not pleasant for

Advertisement