Welcome to the Linux Foundation Forum!

GNU awk

For this exercise, the format of the input records is:

Username: First Name: Family Name: Phone number

Write an awk script that converts such a line to an LDAP record in the following format:

dn: uid = Username, dc = utp, dc = bg
cn: First Name Last Name
sn: Last Name
telephoneNumber: Telephone number

Create a file with several sample records and test

Thank you for your support

Comments

  • fcioanca
    fcioanca Posts: 1,195

    @ivaivanov Did you mean to post this in a different forum? It is not related to LFS258 course.

Categories

Upcoming Training