Awk by Example

Here are some examples of GNU Awk, re-implementing common command line tools in Awk code one-liners to illustrate how Awk works. First line is the original tool, second line is the Awk equivalent. Obviously you would not do these tasks in Awk, rather you would combine these techniques into more complex actions difficult or impossible in the shell.

[Read More]

Multi Stage LDAP Searches With Awk

Problem: query LDAP for all users in a particular group, when LDAP is set up in POSIX style (memberUID: in each group record instead of memberOf: in each user record) without writing a script.

[Read More]
awk  noscript  ldap