summaryrefslogtreecommitdiff
path: root/bin/duplicate-ids
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-10-01 19:43:56 -0600
committermo khan <mo.khan@gmail.com>2019-10-01 19:43:56 -0600
commit44435b60f1196bb59d34bb4b52d57450ca6d8e1e (patch)
treecc9407ac746ae7527659cbcfd44ec3cb98ddda62 /bin/duplicate-ids
parente56cbefabfbdeb6d12d38adcc998b6b540a3b874 (diff)
find duplicate uids
Diffstat (limited to 'bin/duplicate-ids')
-rwxr-xr-xbin/duplicate-ids3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/duplicate-ids b/bin/duplicate-ids
new file mode 100755
index 0000000..2d04668
--- /dev/null
+++ b/bin/duplicate-ids
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cat /etc/passwd | grep -v -E '^#' | awk -F: '{ print $3 }' | sort -n | uniq -d