有时我需要执行一个 shell 脚本中的单个命令。
我已经知道sed -n 'line_num p'可以打印那条线了。但是我如何将打印出的特定行作为命令执行?
sed -n 'line_num p'
command-line bash
bash ×1
command-line ×1