pie multiline replace
[email protected] (bill lam)
| Newsgroups | perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
Hello, Sorry this must be a faq but I cannot find any answer in google. Suppose I want to change 2 lines to 3 line in files as follow using perl -p -i -e command aa bb aa cc bb this doesn't work perl -p -i -e "s/aa\nbb/aa\ncc\nbb/g;" foo.txt what is the correct command (I use linux). Thanks in advance,