在脚本仍在运行时,如何使用vim编辑Perl中的文本?(How can I use vim to edit text from Perl while the script is still runni

系统教程 行业动态 更新时间:2024-06-14 17:01:34
在脚本仍在运行时,如何使用vim编辑Perl中的文本?(How can I use vim to edit text from Perl while the script is still running?)

我有一个输出文本的Perl脚本。 我想将这个文本导入到vim中,编辑它,保存并退出。 退出时,我想要原始的Perl脚本来处理编辑后的文件。

EG在添加新作业时crontab -e如何工作。

谢谢 :)

I have a Perl script that outputs text. I want to import this text into vim, edit it, save it and then exit. On exit, I want the original Perl script to process the edited file.

E.G. how crontab -e works when you add a new job.

Thanks :)

最满意答案

听起来像使用系统在文件名上运行vim很简单的情况。 这将等到vim完成,然后您可以继续阅读文件的新内容。

Sounds like a very plain case to use system to run vim on the filename. That will wait until vim is done, at which point you can go ahead and read the file's new contents.

更多推荐

本文发布于:2023-04-20 18:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/3e130b418e26582810ba357124048a27.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   脚本   文本   编辑   vim

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!