Cut the first, fourth, and fifth fields (separated by ":") from the file /etc/passwd and replace multiple consecutive occurrences of ":" with a single space.
cut -f 1,4,5 -d ":" /etc/passwd | tr -s ':' ' '