P
petermichaux
Hi,
I would like to learn how to find and replace in a text file. I use MS
Word for this because I know how to type white spaces in there. Often I
want to get rid of a trailing space or double paragraph returns so I do
things like
Find: " ^p"
Replace: "^p"
Find: "^p^p"
Replace: "^p"
What I would really like to be able to do is replace carriage returns
with line feeds for conversion from Linux to Mac.
Can anyone tell me how to start doing this in perl?
Thanks,
Peter
I would like to learn how to find and replace in a text file. I use MS
Word for this because I know how to type white spaces in there. Often I
want to get rid of a trailing space or double paragraph returns so I do
things like
Find: " ^p"
Replace: "^p"
Find: "^p^p"
Replace: "^p"
What I would really like to be able to do is replace carriage returns
with line feeds for conversion from Linux to Mac.
Can anyone tell me how to start doing this in perl?
Thanks,
Peter