Search Results

Search: Posts Made By: redwing
3,479
Posted By redwing
eof in data file
Hi,

How to detect eof character in a data file? I am reading a data file generated from UNIX. I use java scanner, the scanner's hasNextLine() returns false in the middle of the file. I suspect...
4,143
Posted By redwing
Hi Alister & Franklin52, Thanks so much to...
Hi Alister & Franklin52,

Thanks so much to you both for the code and detailed explanation. Appreciate your help!
4,143
Posted By redwing
Hi Franklin52 & Alister, We would sort the...
Hi Franklin52 & Alister,

We would sort the file by key field first.

Alister,

Could you please explain your code a little bit?

Thanks
4,143
Posted By redwing
Hi Rdcwayx, Thanks for the quick reply. My...
Hi Rdcwayx,

Thanks for the quick reply. My question is, I am dealing with large amout of data. Probably about 10 million. Will this have performance issue?

Thanks
4,143
Posted By redwing
How to concat lines that have the same key field
Hi, I have file like this -

ABC 123
ABC 456
ABC 321
CDE 789
CDE 345
FGH 111
FGH 222
FGH 333
XYZ 678

I need the output like this:

ABC 123,456
CDE 789,345
FGH 111, 222
XYZ 678
...
Showing results 1 to 5 of 5

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