I a having a sorted file with numeric values like

```
foo 2.3
bar 2.6
baz 4.7

```

and would like to have a one-liner which puts the percentile of a line into the last column, like

```
foo 2.3 0.3333
bar 2.6 0.6666
baz 4.7 1.0000

```

Thank you.