Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    or just awk '{split($1,keys,","); split($2,vals,","); for (x in keys) print keys[x], vals[x]}' infile Commented Jun 12, 2018 at 7:11
  • @αғsнιη, that is not optimal approach, cause it tries to call split twice even in cases when it's not needed Commented Jun 12, 2018 at 7:13
  • Yes the keys correspond to the values. This looks great. thank you Commented Jun 13, 2018 at 7:16