Networking: [Test] => 10.729519791085
GAMES: [Real] => 10
Fashion: [Test] => 27.729519791085
Movies: [Real] => 5
Food: [Test] => 101.729519791085
Sports: [Real] => 7
如果值大于或等于 25,如何打印第一个和第四个变量。
答案1
尝试:
$ awk '$4 >= 25 {print $1,$4}' file
Fashion: 27.729519791085
Food: 101.729519791085