Hi guys, I need a little help....
I have a file with columns of data that has varied amounts of spaces and comas in between each column of data. Some of the columns contain no data, just separated by multiple spaces and comas. Other columns do have data that may of may not be separated by multiple spaces or comas.
here's an example
1, 4242, 3.42323e+23, 0.1, 0, 0,5,294875, 8438393, 394,,,,,,,,
,0, ,0,,,, 0.487564, , ,0, 0,0, 87563,,,,,,,,, , 0 ,
,1, ,,,,,,,,,,,,,,,, 0, , , , 5,
,1, ,,,,,,5241,,,,, , , 0.4543e-3 , 0 , 111111111,
1, 1000,,,, 9576336e+10, 0.1, 0, 0, ,,, , 8438393, 001,
if I (by hand) delete all the spaces, and replace all occurrences of multiple comas (two or more) with a single coma, then all the columns line up correctly (I haven't gone through and counted up the spaces and comas in the above example) and I have row column data that looks like:
rc11,rc12,rc13,rc14,rc15, etc.
rc21,rc22,rc23,rc24,rc25, etc.
rc31,rc32,rc33,rc34,rc35, etc.
etc.
etc.
etc.
thanks soooo much, Tabitha
I have a file with columns of data that has varied amounts of spaces and comas in between each column of data. Some of the columns contain no data, just separated by multiple spaces and comas. Other columns do have data that may of may not be separated by multiple spaces or comas.
here's an example
1, 4242, 3.42323e+23, 0.1, 0, 0,5,294875, 8438393, 394,,,,,,,,
,0, ,0,,,, 0.487564, , ,0, 0,0, 87563,,,,,,,,, , 0 ,
,1, ,,,,,,,,,,,,,,,, 0, , , , 5,
,1, ,,,,,,5241,,,,, , , 0.4543e-3 , 0 , 111111111,
1, 1000,,,, 9576336e+10, 0.1, 0, 0, ,,, , 8438393, 001,
if I (by hand) delete all the spaces, and replace all occurrences of multiple comas (two or more) with a single coma, then all the columns line up correctly (I haven't gone through and counted up the spaces and comas in the above example) and I have row column data that looks like:
rc11,rc12,rc13,rc14,rc15, etc.
rc21,rc22,rc23,rc24,rc25, etc.
rc31,rc32,rc33,rc34,rc35, etc.
etc.
etc.
etc.
thanks soooo much, Tabitha