Created
March 4, 2021 17:33
-
-
Save rodrigolive/d531c73a8f1674ca5623f82e0e64e095 to your computer and use it in GitHub Desktop.
ex01 print_groups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
id -Gn $FT_USER| sed 's/ /,/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
el comando id -Gn lista los grupos del usuario que está en la variable FT_USER
el comando sed reemplaza los espacios por coma