summaryrefslogtreecommitdiff
path: root/day1/ex01/print_groups.sh
blob: 1e4da701ee705c14e4b365463c71b88c7e11b1ae (plain)
1
2
3
4
5
#!/bin/sh
# A command line tool to display the groups a given user is part of
# Before running the script, you need to export the user using  export $FT_USER='user'

groups $FT_USER | tr ' ' ',' | cat -e