Question: how can i get the following output using perl or awk or is it possible in linux command? 

file1:

```
1
2
2
4

```

file2:

```
5
6
7
8

```

Desired output:

```
1   5
2   6
2   7
4   8

```

Answer: 
with command `paste` 

```
paste  file1  file2

```
To be more precise:

`paste` command just prints it out. To save it to a new file the command should be:

```
paste file1 file2 > outputFile

```

`outputFile` now contains both columns.