Get unique records in linux

Lets say you have multiple log files that contain request information. The goal is to get unique request information that has a response rate of less than x seconds and is sorted

cat sample.txt | awk '{if($4>=40000) print $1 $2 $3 $4}'| sort -u

How can I get it to print such info?

submitted by /u/learning_py21
[link] [comments]


Go to Source of this post
Author Of this post: /u/learning_py21
Title Of post: Get unique records in linux
Author Link: {authorlink}