I need to duplicate the values and put them into the file after each line with value +1. The file I will receive will not be like this every time, so I'll need to store every value to variable.
text.txt
12345
12346
12347
12348
12349
Result I want
12345 12346
12346 12347
12347 12348
12348 12349
How can I do this with Ansible or shell command?