Hi,
I need to parse a big CSV file that has some issues
It contains list of users of a network as it follows:
domain\firstname.secondname,number_of_connections_with_that_user,ip_used_to_connect
Example:
college\john.doe,5,192.168.1.1
college\mario.rossi,1,192.168.1.3
college\john.doe,5,192.168.1.2
and so go on...
So as you can see I have John Doe that connected 5 times so I would need an output like this
college\john.doe,5,192.168.1.2,192.168.1.1,....
Can anyone help me?
PS we're talking about a csv file that has 5000 rows.
I did a sort -t , file.csv and I have all the data contigous now on my stdout. I need to do the junction based on first field which is in my example domain\username, domain beeing always the same...
Anyone can help? Don't know much about awk or sed, I tried to use em but have little time to solve the issue...
I need to parse a big CSV file that has some issues
It contains list of users of a network as it follows:
domain\firstname.secondname,number_of_connections_with_that_user,ip_used_to_connect
Example:
college\john.doe,5,192.168.1.1
college\mario.rossi,1,192.168.1.3
college\john.doe,5,192.168.1.2
and so go on...
So as you can see I have John Doe that connected 5 times so I would need an output like this
college\john.doe,5,192.168.1.2,192.168.1.1,....
Can anyone help me?
PS we're talking about a csv file that has 5000 rows.
I did a sort -t , file.csv and I have all the data contigous now on my stdout. I need to do the junction based on first field which is in my example domain\username, domain beeing always the same...
Anyone can help? Don't know much about awk or sed, I tried to use em but have little time to solve the issue...