summaryrefslogtreecommitdiff
path: root/fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish')
-rw-r--r--fish/functions/sysusers.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/fish/functions/sysusers.fish b/fish/functions/sysusers.fish
index eef7b11..81eb9b8 100644
--- a/fish/functions/sysusers.fish
+++ b/fish/functions/sysusers.fish
@@ -1,4 +1,4 @@
function sysusers
- diff (awk -F: '$3 < 1000 {print $1}' /etc/passwd | sort | psub) (systemd-sysusers --tldr | awk '$1 == "u" {print $2}' | grep -v nobody | sort | psub)
- diff (awk -F: '$3 < 1000 {print $1}' /etc/group | sort | psub) (systemd-sysusers --tldr | awk '$1 == "u" || $1 == "g" {print $2}' | grep -v nobody | sort | uniq | psub)
+ diff (awk -F: '$3 < 1000 {print $1}' /etc/passwd | sort | psub) (systemd-sysusers --tldr | awk '$1 ~ /^u/ {print $2}' | grep -v nobody | sort | psub)
+ diff (awk -F: '$3 < 1000 {print $1}' /etc/group | sort | psub) (systemd-sysusers --tldr | awk '$1 ~ /^u/ || $1 ~ /^g/ {print $2}' | grep -v nobody | sort | uniq | psub)
end