using awk to print log in stats to a file
I am using awk to put server login's in a new file. I only need the first 10 login's along with fields 1, 5, 6 of a particular user.This is the awk command I am issuing but I am getting the entire login stats of everyone placed in the new file:
awk '(NR > 1 && NR < 11) {print $1, $5, $6}' last mark > name_date
|