在iMac中使用命令行显示登录的组列表


0

如何使用iMac中的Unix命令行显示环境变量FT_USER中包含的登录成员(使用逗号分隔,不带空格)的组列表。

例:

forFT_USER=nours,the result is"god,root,admin,master,nours,bocal"(with-
out quotation marks)

这应该是这样的

 $>./print_groups.sh 
 god,root,admin,master,nours,bocal$>

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.