Sample Header Ad - 728x90

extract user id and 1st inital last name from output

0 votes
4 answers
86 views
Getting the output of user identity with getent passwd. How can i change the output from
:John Doe
to
,jdoe
i got it with sed but it it removes u12345 but does give me jdoe
Asked by mike (1 rep)
May 11, 2023, 06:50 PM
Last activity: May 17, 2023, 01:21 AM