14 lines
228 B
Awk
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)
|
|
} |