in reply to Opening file and printing specific data

Why the cattiness? awk -F: '{print $1,$5}' < /etc/passwd Or in Perl, perl -naF: -e'print "@F[0,4]\n"' /etc/passwd *grin*

Makeshifts last the longest.