linux_ws2122/awk/05-aufgabe.awk

14 lines
228 B
Awk
Raw Normal View History

2021-10-13 17:25:16 +00:00
#!/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)
}