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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training