shell编程题(五十一)

题目:

  显示当前系统上所有用户的shell,要求,每种shell只显示一次;

答案:

  

cut -d: -f7 /etc/passwd | sort -u
原文地址:https://www.cnblogs.com/wanghao-boke/p/12289991.html