假设我的 中有以下简单示例history:
history
... 76 cd ~ 77 ./generator.sh out.file 78 cp out.file ~/out/ 79 ./out/cleaner.sh . 80 ls -alnh /out ...
如果我想在一个命令中执行命令77、78和79,是否存在快捷方式?我试过!77 !78 !79,它只会将它们全部放在一行上执行。
77
78
79
!77 !78 !79
command-line bash command-history
bash ×1
command-history ×1
command-line ×1