summaryrefslogtreecommitdiff
path: root/groups.sh
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-19 16:53:50 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-19 16:53:50 -0400
commit7eab9358e84ce8cf0433dcdbd12415a7c0b811ad (patch)
tree0d46cd9178ab800d538f5a9f06017c47d0539b8e /groups.sh
parent4fc36c4fbf81c2d624b504c6f91de2adb1998e11 (diff)
implement groups commandHEADmaster
Diffstat (limited to 'groups.sh')
-rw-r--r--groups.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/groups.sh b/groups.sh
new file mode 100644
index 0000000..52606d2
--- /dev/null
+++ b/groups.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ $# -eq 0 ]; then
+ exec id -Gn
+fi
+
+while [ $# -gt 0 ]; do
+ printf '%s : ' $1
+ id -Gn $1
+ shift
+done