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 Mike Lewis 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: *

  1. SweetyXOXO

    AWK with regular Expressions Maybe

    wow! you are a magician mikrom! *-* thank you very much! now i will try to get the output in a table form, and then it will be perfect! xx
  2. SweetyXOXO

    AWK with regular Expressions Maybe

    Hi, so i tried to fix the problem but i am an absolute looser in awk and i was never a good programmer and i really have to solve this problem. Can you help me please? regards
  3. SweetyXOXO

    AWK with regular Expressions Maybe

    Hello Mikrom, you're right i decided for the second one. I thought it would be enough if when I find out the right field numbers, I expectet at least a little change in the output # Run: # awk -f sx_ldap_user2.awk sx_user2.txt sx_vendor.txt sx_attrib.txt BEGIN { FS = "|" # line number...
  4. SweetyXOXO

    AWK with regular Expressions Maybe

    oh okay i just noticed that the attr and vendor table files looks like this: +---------------------+-----------------------------------------+-------------------+-----------+--------+ | AAADICTIONARYATTRID | ATTRIBUTENAME | ATTRIBUTEENCODING | VALUETYPE | VENDOR |...
  5. SweetyXOXO

    AWK with regular Expressions Maybe

    Hello Mikrom, wow, the code is looking pretty well, thank you very much! But unfortunately it doesnt work :/ I checked all the files, they all look the same. The only difference is that i have column names above the columns in the attribute and vendor tables. my result is looking like this...
  6. SweetyXOXO

    AWK with regular Expressions Maybe

    exactly, but i just managed to get the table in the right format so far. now all the files are looking like your examples. but i have no idea how to change the awk script
  7. SweetyXOXO

    AWK with regular Expressions Maybe

    Hi now I had to upgrade from ldap to sql. The tables with the dictionarys are the same. The sx_user.txt looks like that know USER_ID USER_NAME USER_DIST USER_ITEM_ID TYPE VALUE_SN TAG VENDOR ATTRIBUTE 10000000123 ur002 1000 30000000028 1 1...
  8. SweetyXOXO

    AWK with regular Expressions Maybe

    Hello mikrom, thank you for your answer. The programm should be able to handle input textfiles with any number of attributes and vendors. The input file can look like this: VENDOR='2352', ATTRIBUTE='4', and also look like this: VENDOR='2352', ATTRIBUTE='4'...
  9. SweetyXOXO

    AWK with regular Expressions Maybe

    Hello mikrom, thank you for your help, it is running well! (Y) But there is a point i could not change. In some user files there are some more Attributes or vendors. What can I do to catch all of them? btw the number of attributes and vendors is irregular. I hope you can help me thanks and...
  10. SweetyXOXO

    AWK with regular Expressions Maybe

    Hi! I'm an AWK Beginner and I have no idea how to deal with my problem. when i do a Ldap request for user "ur002" i get an output like this (example): username='ur002' TAG='0', VENDOR='2352', ATTRIBUTE='4', VALUE_STR='local'}, The numbers behind the Parameters Vendor an...

Part and Inventory Search

Back
Top