sed 输出停滞
我有映射到目录的文件名。 例如。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
向
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 (thefg
command in Bash) to continue it.Or you could just let it run, and do your processing afterwards...