Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have just exported my LDAP, and i am trying to make a list with all user login names, along with their real names and departments.
I tried doing so with the "cut" command, but cut cuts inside "quotation, marks". This way, i have two fields inside the quotation marks, which i don't want. Is there any way to select these fields, for user-id, first name, and last name, and put them in a list?
Can you change the exported field separator (i.e. in LDAP)?
Can you specify a <Tab>, which is cut's default field separator, instead of the current comma? This would kill the proverbial 2 birds w/ one stone -- the commas inside quotes would be distinguished from the field separators, & there would be no need to change the separator in the cut command.