是否可以在sed里面运行命令sed,像这样:
sed
sed -i.bak -e '${sed -n 1,1p file.txt},$d' output.file
我希望第一行file.txt是 number 的输入参数,用于output.file删除该行之后的所有行。
file.txt
output.file
sed ×1