VMS EDT - 如何选择文件的完整内容?

发布于 2024-07-22 07:14:35 字数 160 浏览 6 评论 0原文

我使用 VMS EDT 一段时间了。 我将编辑/替换文本文件中的大量行并将其保存为不同的版本。

据我所知,删除文本文件中的字符的唯一方法是按删除键。 这个过程非常慢,因为按一次,只删除一个字符。

因此我想知道,有没有办法在 vms edit 中快速选择多行?

I have been using VMS EDT for a while. I would be editing/ replacing large number of lines in the text files and saving it as a different version.

As for as I am aware, the only way to delete the characters in the text file is pressing delete key. This process is quite slow, as on one press, only one character is deleted.

Hence I wanted to know, Is there a way to quickly select multiple lines in vms edit?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

坠似风落 2024-07-29 07:14:35

你是说EDT吗? 如果是这样,那么我已经很长时间没有在 VMS 上进行太多工作了,并且我没有运行它的系统来确认以下内容。 然而,我找到了一本旧手册,谷歌找到了一些看起来有用的网站,包括 这个。 如果您正在使用 EDT,这里有一种可行的方法:

  • 在要清除的文件上启动 EDT。
  • 如果您以行模式启动,请输入 c 进入键盘模式,并
  • 确保您位于文件的顶部(或要开始删除的位置)。
  • 通过按键盘“.”标记要删除的文本的开头。 钥匙。
  • 移至要删除的文本的末尾。 如果您想转到文件末尾,请按金键(如果您远程登录,可能是键盘“7”),然后按键盘“4”。
  • 按键盘“6”剪切文件内容。 请注意,这会将选定的文本放入剪切/粘贴缓冲区中。 您可以使用 GOLD 将其粘贴到光标点,然后按键盘“6”。

您还可以使用 D 命令从 EDT 行模式中删除文本。 语法

Dn1:n2

如下:n1 是要删除的第一行,n2 是要删除的最后一行。 我不记得如果您这样做

D1:

并且找不到该记录会发生什么,但如果您想删除整个文件的内容并且不知道最后一行号,那么可能值得一试。

祝你好运!

Do you mean EDT? If so, it's been a long time since I worked on VMS much, and I don't have a system running it on which to confirm the following. However, I found an old manual and Google turned up what look like a number of useful web sites, including this one. If you are using EDT, here's one method that should work:

  • Start EDT on the file you want to clean out.
  • If you are started in line mode, go into keypad mode by typing c and
  • Make sure you're at the top of the file (or the point at which you want to start deleting).
  • Mark the start of the text you want to delete by hitting the keypad "." key.
  • Move to the end of the text you want to delete. If you want to go to the end of the file, hit the GOLD key (probably the keypad "7" if you're logged in remotely) and then the keypad "4".
  • Press the keypad "6" to cut the file's contents. Note that this puts the selected text into the cut/paste buffer. You can paste it at the cursor point with GOLD then the keypad "6".

You can also delete text from EDT's line mode using the D command. The syntax is

Dn1:n2

where n1 is the first line to delete and n2 is the last line to delete. I don't remember what happens if you do

D1:

and couldn't find that documented, but it may be worth a try if you want to delete the entire file's contents and don't know the last line number.

Good luck!

等风来 2024-07-29 07:14:35

IMO - 使用 TPU 版本的 VMS 编辑器会更好。 它是 EDT 的“现代”版本;),因此它具有大致相同的击键/键盘。

命令:'编辑/tpu'
查看“帮助编辑”,然后选择“/tpu”。

它具有更多功能,在您的情况下选择多行很容易。 按“选择”键,移动光标,然后删除或复制。 不太特别。

兰塞姆·费奇

IMO - you'd be much better off using the TPU version of the VMS editor. It is the 'modern' ;) version of EDT so it has much the same keystrokes/keypad.

Command: 'edit/tpu'
Look at 'help edit' then select '/tpu'.

It has many more features and in your case selecting multiple lines is easy. Press 'select' key, move cursor, then either delete or copy. Not too special.

Ransom Fitch

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文