sed script to manipulate the /etc/passwd file

Hi. Can anybody help me with a script to extract usernames, shell and home_directory from the /etc/passwd file.

I am stuck

To extract the fields in that order:

cat /etc/passwd|awk -F: '{print $1,$7,$6}'

You can eliminate the UUOC (for the unfamiliar - Useless Use of Cat)

awk -F: '{print $1,$7,$6}' /etc/passwd