blob: face1a74142e0207f4c2b6626e27a44da6bec02f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# List user
function listuser() {
case ${LANG/_*/} in
es)
printf '%s\n' "Usuario UID Shell "
printf '%s\n' "----------- ----- --------"
awk -F':' '$3>=1000 && $3<=60000 { printf "%-12s %4d %11s\n", $1, $3, $7 | "sort -r"}' /etc/passwd
;;
*)
printf '%s\n' "Users UID Shell "
printf '%s\n' "----------- ----- --------"
awk -F':' '$3>=1000 && $3<=60000 { printf "%-12s %4d %11s\n", $1, $3, $7 | "sort -r"}' /etc/passwd
;;
esac
}
|