Hi folks!
I need to extract the full name of a user and put it inside a variable.
Ok, I need to put "Pinco Pallino" into file (or variable) or to output. Is there a command to do this? Or do I need to use sed?
Thanks!
Pol
I need to extract the full name of a user and put it inside a variable.
pw user show guest2
Code:
guest2:*:1004:1004::0:0:Pinco Pallino:/home/guest2:/bin/sh
Thanks!
Pol