Jul 2, 2002 #1 jfong716 Technical User Jun 27, 2002 4 US i am having a little trouble i have a text file formatted like tged, 13 tgea, 28 etc... i want my end file to look like tged tgea with the end file having only occurrences of 3 or higher of the first column, which is the username..how do i do this?
i am having a little trouble i have a text file formatted like tged, 13 tgea, 28 etc... i want my end file to look like tged tgea with the end file having only occurrences of 3 or higher of the first column, which is the username..how do i do this?
Jul 2, 2002 #2 CaKiwi Programmer Apr 8, 2001 1,294 US If "occurrences of 3 or higher" means that the second field is >= 3 then this awk program should do what you want. Code: awk 'BEGIN {FS=","} $2>2{print $1}' text-file > new-file CaKiwi Upvote 0 Downvote
If "occurrences of 3 or higher" means that the second field is >= 3 then this awk program should do what you want. Code: awk 'BEGIN {FS=","} $2>2{print $1}' text-file > new-file CaKiwi