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*

2
  • for your current example of file2 - there won't be any matches Commented Mar 13, 2018 at 15:59
  • 1
    add expected output for given sample (suggestion: make it fewer lines for file1 and fewer values in 3rd col for file2)... try something yourself and post when that doesn't work.. see backreference.org/2010/02/10/idiomatic-awk for examples of two file processing.. Commented Mar 13, 2018 at 15:59