using cut command
hi all
the file /etc/passwd contains all users information
as my need i want to cut username and their id with group id
and redirect to another file
i have already cut username with as follows
cut -d : f1 /etc/passwd | sort -u >> tmp.txt
but as my need i want both username and userid how should i use
can anyone suggest me with correct syntax
thanqs
|