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*

4
  • What is your algorithm for mapping {west:popular, south:someWhatPopular, north:boring}? Commented Nov 28, 2017 at 1:22
  • That is part of what I need assitance with, being able to find a way to map it that makes sense. I was thinking of looping through both files and finding contents in column 3 of File A and map them to file B, any examples or thoughts? Commented Nov 28, 2017 at 2:08
  • One sensible mapping is {north:boring, south:popular, west:someWhatPopular} since both the keys and the values are lexically sorted within their sets. Commented Nov 28, 2017 at 2:20
  • Right on. Would you have some code snippet that I could build off of? Not too familiar with bash yet Commented Nov 28, 2017 at 2:25