Đọc /etc/passwd từ stdin. Với mỗi giá trị shell khác nhau (trường 7), đếm số user dùng shell đó.
In ra các dòng <số_lượng> <shell> (số đếm, một dấu cách, đường dẫn shell), sắp xếp tăng dần theo tên shell (LC_ALL=C).
Ví dụ:
Input:
root:x:0:0:root:/root:/bin/bash
alice:x:1000:1000:Alice:/home/alice:/bin/bash
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
Output:
2 /bin/bash
1 /usr/sbin/nologin
Nhiều dòng định dạng /etc/passwd.
1 ≤ số dòng ≤ 1000.
Các dòng <số_lượng> <shell> sắp xếp tăng dần theo tên shell (LC_ALL=C).
Ví dụ:
Đầu vào:
root:x:0:0:root:/root:/bin/bash
alice:x:1000:1000:Alice:/home/alice:/bin/bash
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
Đầu ra:
2 /bin/bash
1 /usr/sbin/nologin
Giải thích:
Đang tải editor...