I need to process a file like below in the bash script:

**input.txt:**

```
host1 53
host1 123
host2 0
host1 222
host3 1
host1 85
host1 25
host1 13
host3 8
host2 90

```

I need to get in the results only one line for each host based on maximum
value in column 2:

**output.txt:**

```
host1 222
host2 90
host3 8

```

Any ideas?