Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does AWK extract numbers

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report