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

ios - How to determine if NSLayoutConstraint is horizontal or vertical? -

c# - Reactive Extensions ControlScheduler -

python - rpy2 import is not working -