📌  相关文章
📜  bash 拆分并获得最后一个 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:30.139000             🧑  作者: Mango

代码示例1
Use rev command altogether with cut command as follows:
echo "a1 a2 a3 a4 a5" | rev | cut -d ' ' -f '1' | rev
#rev reverses string, then you cut from 2th field to end and reverse back