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
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...
oh okay i just noticed that the attr and vendor table files looks like this:
+---------------------+-----------------------------------------+-------------------+-----------+--------+
| AAADICTIONARYATTRID | ATTRIBUTENAME | ATTRIBUTEENCODING | VALUETYPE | VENDOR |...
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...
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
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...
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'...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.