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

javascript - How to use the code plugin with popcornjs -

python - rpy2 import is not working -

Python, converting png to gif using ImageMagick -