linux_ws2122/awk/05-aufgabe.awk
Markus Pesch fed26c8bbd
All checks were successful
continuous-integration/drone Build is passing
Initial Commit
2021-10-13 19:25:16 +02:00

14 lines
228 B
Awk

#!/bin/awk
function logical_decission(i, user, badname, shell) {
if (i >= 5 && i <= 10) printf "%s %s %s %s\n", i, user, badname, shell;
}
BEGIN {
printf " user badname shell\n"
}
{
logical_decission(FNR, $1, $5, $7)
}