Skip to main content
deleted 14 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 239

I have a input like this ; i need to filter the greater record value

cat;5
dog;3
bird;2
cat;3
dog;6
bird;8

for output a result like this

cat;5
dog;6
bird;8

Please help me

I have a input like this ; i need to filter the greater record value

cat;5
dog;3
bird;2
cat;3
dog;6
bird;8

for output a result like this

cat;5
dog;6
bird;8

Please help me

I have a input like this ; i need to filter the greater record value

cat;5
dog;3
bird;2
cat;3
dog;6
bird;8

for output a result like this

cat;5
dog;6
bird;8

Source Link

awk how I could print only the largest value per record?

I have a input like this ; i need to filter the greater record value

cat;5
dog;3
bird;2
cat;3
dog;6
bird;8

for output a result like this

cat;5
dog;6
bird;8

Please help me