Skip to content

Instantly share code, notes, and snippets.

@rodrigolive
Created March 4, 2021 17:33
Show Gist options
  • Save rodrigolive/d531c73a8f1674ca5623f82e0e64e095 to your computer and use it in GitHub Desktop.
Save rodrigolive/d531c73a8f1674ca5623f82e0e64e095 to your computer and use it in GitHub Desktop.
ex01 print_groups
#!/bin/bash
id -Gn $FT_USER| sed 's/ /,/g'
@rodrigolive
Copy link
Author

el comando id -Gn lista los grupos del usuario que está en la variable FT_USER

el comando sed reemplaza los espacios por coma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment