Hi,
I need to remove the newline character for certain lines of a file. There is a word to be searched on these lines.
Ex: Input file
Network 10.1.028 2.2067 Placeholder
10.27.96
90.24.87
10.0.1
Network 10.2.028 2.2077 Placeholder
10.27.92
90.22.87
10.0.10
Output
Network 10.1.028 2.2067 Placeholder10.27.96
90.24.87
10.0.1
Network 10.2.028 2.2077 Placeholder10.27.92
90.22.87
10.0.10
I tried to remove the newline character using tr command and it makes a single line file (removes all newline characters). I need only to remove the new line character from the line with the Word "Network"
Any help is really appreciated.
Thanks in advance
dbadmin.
I need to remove the newline character for certain lines of a file. There is a word to be searched on these lines.
Ex: Input file
Network 10.1.028 2.2067 Placeholder
10.27.96
90.24.87
10.0.1
Network 10.2.028 2.2077 Placeholder
10.27.92
90.22.87
10.0.10
Output
Network 10.1.028 2.2067 Placeholder10.27.96
90.24.87
10.0.1
Network 10.2.028 2.2077 Placeholder10.27.92
90.22.87
10.0.10
I tried to remove the newline character using tr command and it makes a single line file (removes all newline characters). I need only to remove the new line character from the line with the Word "Network"
Any help is really appreciated.
Thanks in advance
dbadmin.