sed 输出停滞

发布于 2024-09-14 22:34:27 字数 245 浏览 3 评论 0原文

我有映射到目录的文件名。 例如。

test ---> /to/path/test/program.c

我有一行将 sed 的输出格式化为当前

test0
test1
test3

所有唯一的目录,我现在需要添加前导路径并复制它们各自的 c 文件。当我进行这些进程时,有没有办法使 sed 的输出停滞不前。

请并谢谢你。

I have file names that map to directores.
For example.

test ---> /to/path/test/program.c

I have a line that formats the output of sed into this currently

test0
test1
test3

All unique directories, I now need to add leading path and copy their respective c files. Is there a way to stagnate the output of sed while i carry about there processes.

Please and thank you.

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

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

发布评论

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

评论(1

轻许诺言 2024-09-21 22:34:27

sed 发送 SIGTSTP(例如通过按 CTRL-Z 产生的信号)来暂停它。发送 SIGCONT(Bash 中的 fg 命令)以继续。

或者你可以让它运行,然后再进行处理......

Send sed a SIGTSTP (such as is produced by pressing CTRL-Z) to pause it. Send a SIGCONT (the fg command in Bash) to continue it.

Or you could just let it run, and do your processing afterwards...

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