parsing - awk if first field occurs multiple times comma separate second field -


I do not know if awk is the right tool here, so if I should use something else as long as it is available Do not be, under Unix-like systems, it's okay!

My data:

  First Fu first time second forum for third off  

desired output:

  first foo, bar second forum, rab  

Comments

Popular posts from this blog

python - rpy2 import is not working -

c++ - How to load a bitmap from file into the samples buffer -

javascript - How to get MySQL query result returned using $.ajax -