Search Results

Search: Posts Made By: dbauhaus
Forum: UNIX and Linux Applications 11-14-2007
48,222
Posted By dbauhaus
Re: vi or vim replace ,$ (eol) with just a comma
Weeellllll, ok MS Word lets you replace comma + ^013 which takes a comma plus the carriage returns/line feeds/^M and leave just the comma and concatenates any line which had previously a comma (or...
Forum: UNIX and Linux Applications 11-14-2007
48,222
Posted By dbauhaus
vi or vim replace ,$ (eol) with just a comma
Unfortunately, it is a variable number of items 22-41. So I need to remove the end of line for every line that has a comma. Thanks for the thought though. -Dan
Forum: UNIX and Linux Applications 11-14-2007
48,222
Posted By dbauhaus
vi or vim replace ,$ (eol) with just a comma
I have lines in a file like this (140,000+ entries):

value1,
value2,
value3,
"
"

I want to concatenate the three (there are 22) lines with commas so it looks like this

value1, value2,...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy