script to get user id reports korn shell

view story

http://www.unix.com – Dear Friends, Can Any one provide me script to generate list of username with the gecos field. Code: (cat /etc/passwd | cut -d: -f1,5) Please note i have to run this command from nim server and i have password less ssh access.(ssh hostname command) and i want a file to be generated on nim server. Thanks in advance !!:b: Regards, Vinod Moderator's Comments: Please view this code tag video for how to use code tags when posting code and data. (HowTos)