neuralnode
Technical User
Hi All,
Here's the task:
The contents of a text file is like this:
I want to replace every occurence of a newline character and the string "55".
So whenever there is "55" starting a line, the preceding newline character should be replaced with a space.
How can I do that?
(with some regex in perl/sed/awk)
Thanx in advance!
Here's the task:
The contents of a text file is like this:
Code:
this is a string
55 and some other text
I want to replace every occurence of a newline character and the string "55".
So whenever there is "55" starting a line, the preceding newline character should be replaced with a space.
How can I do that?
(with some regex in perl/sed/awk)
Thanx in advance!