I need the command to join 2 lines into one. I found lots of threads but none give me the sollution. Probably because unix scripting is one of my best features
I got a logfile where line 2 needs to be joined with line 1, lines 4 needs to be joined with line 3 etc
$ cat joinme
I need the command to join 2 lines into one.
I found lots of threads but none give me the sollution.
Probably because unix scripting is one of my best features
I got a logfile where line 2 needs to be joined with line 1,
lines 4 needs to be joined with line 3 etc
If you need some more info please let me know.
$ sed 'N;s/\n//' joinme
I need the command to join 2 lines into one. I found lots of threads but none give me the sollution.
Probably because unix scripting is one of my best features I got a logfile where line 2 needs to be joined with line 1,
lines 4 needs to be joined with line 3 etcIf you need some more info please let me know.
Please post the command you are running and the output you are getting
The second column is the time. I need to adjust this so only hh:mm:ss is displayed. As you can see the last 3 chars are not always on the same place. I'm trying to eddit is with sed but I get stuck on the wildcards to use.
You run off topic.
First try to fix the problem at the source, the way you generate your file, if you can't fix I'll suggest to start a new thread for your new problem.