J
Jensen
Hello:
This works for me to replace single newline characters with spaces:
perl -pe 's/\n/ /g' test2
in a file.
However, when I want to replace just the double newlines (two of them in
sequence), with:
perl -pe 's/\n\n/ /g' test2
it doesn't work. Same if I'm using \012 for the newline (shown by the od
command in UNIX).
And they're there, I see them with say:
od -cb test2
or with OpenOffice or other editors.
What gives?
Thanks.
This works for me to replace single newline characters with spaces:
perl -pe 's/\n/ /g' test2
in a file.
However, when I want to replace just the double newlines (two of them in
sequence), with:
perl -pe 's/\n\n/ /g' test2
it doesn't work. Same if I'm using \012 for the newline (shown by the od
command in UNIX).
And they're there, I see them with say:
od -cb test2
or with OpenOffice or other editors.
What gives?
Thanks.