How to execute the output of a command within the current shell?

前端 未结 9 1169
渐次进展
渐次进展 2020-12-04 07:37

I\'m well aware of the source (aka .) utility, which will take the contents from a file and execute them within the current shell.

Now, I\'

9条回答
  •  庸人自扰
    2020-12-04 08:03

    `ls | sed ...`
    

    I sort of feel like ls | sed ... | source - would be prettier, but unfortunately source doesn't understand - to mean stdin.

提交回复
热议问题