in reply to
Opening file and printing specific data
Why the
cat
tiness?
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.
Comment on
Re: Opening file and printing specific data
Select
or
Download
Code
In Section
Seekers of Perl Wisdom