You can use the cut command which will select the specified column.
$cat /etc/passwd | cut -d : -f 1
Reference:https://www.poftut.com/list-users-groups-linux/
Results 1 to 2 of 2
Thread: List Only UsernamesHybrid View
Tags for this Thread |
|
|