Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: awkfw
  • Order by date
  1. awkfw

    reverse lookup using awk - need help

    Discard my previous message. I am all set. Thanks again :)[medal]
  2. awkfw

    reverse lookup using awk - need help

    Not a big deal but could we do the whole code in one liner? Again, it is not a big deal but it is more just my curiosity.
  3. awkfw

    reverse lookup using awk - need help

    Thank you mikrom, your suggested code worked the way I wanted. Amazed by a simple solution like this. I was over thinking of achieving this using "for" loop with NR-- nonsense. But it appears sometimes there is any easy solution if you think creatively. Thanks again and Happy new year.
  4. awkfw

    reverse lookup using awk - need help

    Thanks for your response. Let me explain the output requirement one more time. My apologies if it was not clear. I am not a programmer. TEST FILE: =========== edit policy mars set src abc edit policy abc edit policy yahoo edit policy bbc set dst sds set src ggg edit policy cnn edit policy XXX...
  5. awkfw

    reverse lookup using awk - need help

    By the way, the reason why I am not able to use "grep -B" the file may contain # of "set" commands with other variables before "edit policy" command e.g. the file could look this this : TEST FILE: =========== edit policy mars set src abc edit policy abc edit policy yahoo edit policy bbc set...
  6. awkfw

    reverse lookup using awk - need help

    TEST FILE: =========== edit policy mars set src abc edit policy abc edit policy yahoo edit policy bbc edit policy cnn edit policy XXX set dst abc edit policy yyy set src abc ========================= What I want to do here is find "abc" in the text file (could be 100+ lines) and only display...

Part and Inventory Search

Back
Top