我正在尝试从lsb_release -i输出中检索发行版名称,但使用
lsb_release -i
lsb_release -i | sed 's/Distributor ID: //g'
不会做的伎俩。
我究竟做错了什么?或者我应该更换工具吗?
bash sed
bash ×1
sed ×1