小编led*_*awg的帖子

输出命令直接输出到命令行,非变量

我在 bash shell 上,我希望命令的输出直接出现在命令执行后出现的命令提示符中!

我设想的示例,以说明我的想法:

locate create_tables.sql|MAGIC_command
user@localhost:~# /usr/share/doc/phpmyadmin/create_tables.sql
Run Code Online (Sandbox Code Playgroud)

现在,像这样使用 comman dsubstitution

sudo $(locate create-tables.sql)
Run Code Online (Sandbox Code Playgroud)

工作但 立即执行输出,我希望能够之前编辑它。有办法吗?

bash line-editor command-substitution

5
推荐指数
2
解决办法
219
查看次数

标签 统计

bash ×1

command-substitution ×1

line-editor ×1