KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Anyone has an idea how to remove all white space and replace them with a comma , in a file using Vim ? File input example (words could be everywhere !): C1 TEST PROD A1 BE T1 B1 File output example(all words belonging to the same line are like in the example below): C1,TEST,PROD A1,BE T1,B1 I Found it : %s/\s\{1,}/,/gc
Tags (comma-separated)
Save Edits
Cancel