How to select individual words from a group of lines acting as inputs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apoorva29
    New Member
    • Jan 2014
    • 1

    #1

    How to select individual words from a group of lines acting as inputs

    INPUT:
    CN=d123123,OU=P eople,OU=eProfi le,DC=testcore, DC=test,DC=dir, DC=telstra,
    displayName=Sin gh, Apoorva E
    telstraHROrgUni tCode=44444444
    telstraSSUStatu s=XXXXX

    Output:
    d123123, Singh, Apoorva E, XXXXX
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi apoorva29 and welcome to bytes.com!

    This looks like it may be a homework question so as we don't solve those for you here I have to ask: What have you done so far? Show us your work and we will help you find the solution.

    Also, what exactly is expected as the output? The values for CN, displayName and telstraSSUStatu s?

    Comment

    • Luuk
      Recognized Expert Top Contributor
      • Mar 2012
      • 1043

      #3
      i was planning on saying that 'awk' (or 'gawk') would be a great tool to do that.... ;-)

      Comment

      Working...