我想你想选择列。这比正则表达式容易得多。
从屏幕手册页:
c or C to set the left or right margin respectively. If no
repeat count is given, both default to the current
cursor position.
Example: Try this on a rather full text screen: "C-a [
M 20 l SPACE c 10 l 5 j C SPACE".
This moves one to the middle line of the screen, moves
in 20 columns left, marks the beginning of the paste
buffer, sets the left column, moves 5 columns down, sets
the right column, and then marks the end of the paste
buffer. Now try:
"C-a [ M 20 l SPACE 10 l 5 j SPACE"
and notice the difference in the amount of text copied.
因此,在您的屏幕截图中,按C-a [
,将光标移动到文本的开头,按SPACE
,然后按c
。移至选择的末尾,然后再次按SPACE
。现在你有了你想要的文本。
希望这不是太多的信息。你用初学者标记了它,所以我不确定你是 perl 还是 screen 初学者。