How does AWK extract numbers
This article mainly explains "how to extract numbers from AWK". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to extract numbers from AWK.
/ / Test text score.txt
Aaron Physics 87
Abel Maths 98
Rahul Chinese 90
Buck Biology 87
Byron English 85
Dave History 89
Enoch Chemistry 89
/ / take out data with scores greater than or equal to 90 points.
[root@vagrant-centos65 awk] # awk'$3 > = 90 {print $0} 'score.txt
Abel Maths 98
Rahul Chinese 90
/ / take out the score > = 90 and