I want to read the contents of the file into the paste buffer and stdout it to the screen. I did this:
screen -X readbuf /home/nitro/file|screen -X writebuf|cat /tmp/screen-exchange
cat command showed me the screen-exchange file with the previous result of the readbuf command. If I do these commands separately, everything will be correct and I'll get the modified screen-exchange file.
How can I perform all three commands readbuf, writebuf and cat at once?