在尝试读取版本号时vim,我得到了许多额外的行,我需要忽略它们.我试着阅读手册head并尝试以下命令:
vim
head
vim --version | head -n 1
我想知道这是否是正确的方法?
linux bash shell
bash ×1
linux ×1
shell ×1