$ cat file.txt
word4 word2
word4 word2
word3 word1
word1 word3
$

How can I please get this output from file.txt ?

word1