grep -i root /etc/passwd | awk '{ ... You can figure it out.