I have two files and I need catch the last column of a file and append to other file.

file1

```
1 2 3
1 2 3
1 2 3

```

file2

```
5 5
5 5
5 5

```

Initial proposal

```
#!/usr/bin/env bash

column=$(awk '{print $(NF)}' $file1)
paste -d',' $file2 < $column

```

Expected result

file2

```
5 5 3
5 5 3
5 5 3

```

But, This script does not work yet

OBS: I do not know how many columns have in the file. I need more generic solution.