Jan 062010
How to replace a character for a new line in vi?
Answer:
You might have tried
:%s/,/\n/g
But it didn't work.
Try replacing with \r instead
:%s/,/\r/g
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to replace a character for a new line in vi?
Answer:
You might have tried
:%s/,/\n/g
But it didn't work.
Try replacing with \r instead
:%s/,/\r/g