GNU Screen: files to numbered buffers?

倖福魔咒の 提交于 2019-12-11 05:56:44

问题


I unefficiently use "^a + ESC SPACE -- SPACE" and "^a + ]".

1. How can I copy a big file to GNU Screen buffer like

^a + : cat big_file > new_buffer

^a + : new_buffer ]

2. How can specify the number for each buffer like

^a + : cat big_file 2> new_buffer_number_2

^a + 2]

回答1:


Maybe you want :readbuf?

^A :readbuf /path/to/file
^A ]

I haven't used 'buffers' in GNU Screen (never knew they existed), but I'm guessing :readreg is the buffer-y version of :readbuf:

^A :readreg x /path/to/file
^A :paste x


来源:https://stackoverflow.com/questions/1318046/gnu-screen-files-to-numbered-buffers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!